mirror of
https://github.com/welpo/tabi.git
synced 2025-10-11 07:46:15 +02:00
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:
parent
506a4a86e5
commit
def4b2d41c
1 changed files with 1 additions and 1 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue