Replace sorting icons in table

This commit is contained in:
Mark Veidemanis 2022-08-11 08:53:38 +01:00
parent 1ebccc7338
commit 6e25881c73
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 3 additions and 3 deletions

View File

@ -19,12 +19,12 @@
{% if column.is_ordered %} {% if column.is_ordered %}
{% is_descending column.order_by as descending %} {% is_descending column.order_by as descending %}
{% if descending %} {% if descending %}
<span aria-hidden="true">{% block table.desc_icon %}&darr;{% endblock table.desc_icon %}</span> <span class="icon" aria-hidden="true">{% block table.desc_icon %}<i class="fa-solid fa-sort-down"></i>{% endblock table.desc_icon %}</span>
{% else %} {% else %}
<span aria-hidden="true">{% block table.asc_icon %}&uarr;{% endblock table.asc_icon %}</span> <span class="icon" aria-hidden="true">{% block table.asc_icon %}<i class="fa-solid fa-sort-up"></i>{% endblock table.asc_icon %}</span>
{% endif %} {% endif %}
{% else %} {% else %}
<span aria-hidden="true">{% block table.orderable_icon %}&ReverseUpEquilibrium;{% endblock table.orderable_icon %}</span> <span class="icon" aria-hidden="true">{% block table.orderable_icon %}<i class="fa-solid fa-sort"></i>{% endblock table.orderable_icon %}</span>
{% endif %} {% endif %}
<a <a
hx-get="search/{% querystring table.prefixed_order_by_field=column.order_by_alias.next %}&{{ uri }}" hx-get="search/{% querystring table.prefixed_order_by_field=column.order_by_alias.next %}&{{ uri }}"