Add quick sort options to normals list for improved user navigation

This commit is contained in:
Ross
2026-03-02 11:41:32 +00:00
parent 2c6d0f2613
commit ed3bd3433b
2 changed files with 15 additions and 0 deletions
+10
View File
@@ -34,6 +34,16 @@
</div>
{% if page_obj.object_list %}
<div class="mb-2">
<span class="text-muted me-2">Quick sort:</span>
{% for value, label in sort_choices %}
{% if selected_sort == value %}
<span class="badge text-bg-primary">{{ label }}</span>
{% else %}
<a class="badge text-bg-light text-decoration-none" href="?{% if querystring_without_page_sort %}{{ querystring_without_page_sort }}&amp;{% endif %}sort={{ value }}">{{ label }}</a>
{% endif %}
{% endfor %}
</div>
<div class="list-group">
{% for normal in page_obj.object_list %}
<div class="list-group-item d-flex justify-content-between align-items-start">