forked from mirrors/bookwyrm
5d3f00a537
- Fix typo in English. - Add translations for missing strings. - Update translations for fuzzy strings.
13 lines
527 B
HTML
13 lines
527 B
HTML
{% load i18n %}
|
|
<a href="{{ url }}?sort={% if sort == field %}-{% endif %}{{ field }}{% for k, v in request.GET.items %}{% if k != "sort" %}&{{ k }}={{ v }}{% endif %}{% endfor %}">
|
|
{{ text }}
|
|
{% if sort == field %}
|
|
<span class="icon icon-arrow-up">
|
|
<span class="is-sr-only">{% trans "Sorted ascending" %}</span>
|
|
</span>
|
|
{% elif sort == "-"|add:field %}
|
|
<span class="icon icon-arrow-down">
|
|
<span class="is-sr-only">{% trans "Sorted descending" %}</span>
|
|
</span>
|
|
{% endif %}
|
|
</a>
|