diff options
author | William Harrington <kb0iic@berzerkula.org> | 2025-02-11 21:30:34 -0600 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2025-02-11 21:30:34 -0600 |
commit | 5db196eebb04155491630b5396d1b7a7f2eab4e6 (patch) | |
tree | fc53afeb77808ca6c8ed39a055ac79241c756540 /src/main/resources/templates/pkgs/sorting.html | |
parent | 0adf14e0466bc153f4924cef62b18352aa987827 (diff) |
Push initial release 1.0.0
Diffstat (limited to 'src/main/resources/templates/pkgs/sorting.html')
-rw-r--r-- | src/main/resources/templates/pkgs/sorting.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/resources/templates/pkgs/sorting.html b/src/main/resources/templates/pkgs/sorting.html new file mode 100644 index 0000000..199ef68 --- /dev/null +++ b/src/main/resources/templates/pkgs/sorting.html @@ -0,0 +1,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>
\ No newline at end of file |