aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/resources/templates/pkgs/sorting.html
blob: 199ef6857b8d15e8788ddf2d126757aa1575cce8 (plain)
1
2
3
4
5
6
<th scope="col" th:fragment="sorting(field, label)">
    <a class="text-decoration-none text-dark"
       th:href="@{'/pkgs?' + ${sortField!=null ? '&sort=' + field + ',' + (sortField == field ? reverseSortDirection : sortDirection) : ''}}">[[${label}]]</a>
    <span th:if="${sortField == field}"
          th:class="${sortDirection == 'asc' ? 'fas fa-arrow-down-short-wide' : 'fas fa-arrow-down-wide-short'}"></span>
</th>