Skip to content

Commit

Permalink
Merge pull request #1413 from devdanzin/avoid_page_1_of_0
Browse files Browse the repository at this point in the history
Show 'Page 1 of 1' instead of 'Page 1 of 0'.
  • Loading branch information
petschki authored Dec 9, 2024
2 parents d2538d2 + 826bafe commit 7d09cde
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pat/structure/templates/paging.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@
</ul>

<div class="pagination-info">
<% if(totalPages){ %>
<%- _t("Page:") %> <span class="current"><%- currentPage %></span>
<%- _t("of") %>
<span class="total"><%- totalPages %></span>
<%- _t("shown") %>
<% } %>
</div>

0 comments on commit 7d09cde

Please sign in to comment.