Implement snip sorting
This commit is contained in:
@ -11,6 +11,14 @@
|
||||
{% else %}
|
||||
<a class="btn btn-secondary" href="{{ path('snip_index', {onlyVisible: true}) }}">Hide hidden</a>
|
||||
{% endif %}
|
||||
|
||||
{% if request.sort != 'name' %}
|
||||
<a class="btn btn-secondary" href="{{ path('snip_index', {sort: 'name'}) }}">Sort by name</a>
|
||||
{% endif %}
|
||||
{% if request.sort != 'date' %}
|
||||
<a class="btn btn-secondary" href="{{ path('snip_index', {sort: 'date'}) }}">Sort by date</a>
|
||||
{% endif %}
|
||||
|
||||
<br><br>
|
||||
<div class="list-group">
|
||||
{% for snip in snips %}
|
||||
|
Reference in New Issue
Block a user