minor edits

This commit is contained in:
Zakharov_Rostislav 2024-06-09 20:28:51 +04:00
parent f6e5c71aba
commit 8e14a128ea

View File

@ -3,7 +3,7 @@
<body>
<th:block th:fragment="pagination (url, totalPages, currentPage)">
<th:block th:fragment="pagination (url, totalPages, currentPage, requestParams)">
<nav th:if="${totalPages > 1}" th:with="
maxPage=2,
currentPage=${currentPage + 1}">
@ -13,7 +13,8 @@
seqTo=${currentPage + maxPage > totalPages ? totalPages : currentPage + maxPage}">
<th:block th:if="${currentPage > maxPage + 1}">
<li class="page-item">
<a class="page-link" aria-label="Previous" th:href="@{/{url}?page=0(url=${url})}">
<a class="page-link" aria-label="Previous"
th:href="@{/{url}?page=0(url=${url})}">
<span aria-hidden="true">&laquo;</span>
</a>
</li>
@ -25,7 +26,8 @@
</th:block>
<li class="page-item" th:each="page : ${#numbers.sequence(seqFrom, seqTo)}"
th:classappend="${page == currentPage} ? 'active' : ''">
<a class=" page-link" th:href="@{/{url}?page={page}(url=${url},page=${page - 1})}">
<a class=" page-link"
th:href="@{/{url}?page={page}(url=${url},page=${page - 1})}">
<span th:text="${page}" />
</a>
</li>