From def4b2d41c9d4d2a997bae9de993107c27c6ece9 Mon Sep 17 00:00:00 2001 From: ZzMzaw <89450172+ZzMzaw@users.noreply.github.com> Date: Sun, 4 Aug 2024 09:02:35 +0200 Subject: [PATCH] feat(pagination): display pages only when needed If there is only one page, the pages selector at the bottom might not be displayed. --- templates/partials/paginate.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/partials/paginate.html b/templates/partials/paginate.html index 1833dca..6502af7 100644 --- a/templates/partials/paginate.html +++ b/templates/partials/paginate.html @@ -1,4 +1,4 @@ -{% if paginator %} +{% if paginator and paginator.number_pagers > 1 %}