Add quick sort options to normals list for improved user navigation
This commit is contained in:
@@ -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 }}&{% 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">
|
||||
|
||||
Reference in New Issue
Block a user