feat(pagination): display pages only when needed

If there is only one page, the pages selector at the bottom might not be displayed.
This commit is contained in:
ZzMzaw 2024-08-04 09:02:35 +02:00
parent 506a4a86e5
commit def4b2d41c

View file

@ -1,4 +1,4 @@
{% if paginator %}
{% if paginator and paginator.number_pagers > 1 %}
<ul class="pagination">
{% if paginator.previous %}
<li class="page-item page-prev">