From 275eacbcbbb4538cc64147857e122382b76a90e5 Mon Sep 17 00:00:00 2001 From: Darks Date: Tue, 10 Dec 2019 00:42:09 +0100 Subject: [PATCH] Correction d'un bug de pagination --- app/templates/widgets/pagination.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/templates/widgets/pagination.html b/app/templates/widgets/pagination.html index cdad27c..cdd0747 100644 --- a/app/templates/widgets/pagination.html +++ b/app/templates/widgets/pagination.html @@ -5,7 +5,9 @@ {% endif %} {% for page in objects.iter_pages(1, 5, 6, 1) %} - {% if page != objects.page %} + {% if not page %} + … + {% elif page != objects.page %} {{ page }} {% else %} {{ page }}