From a68b3e73184cf99d5999f4de47a71675f879224e Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Wed, 30 Nov 2022 20:11:20 +0100 Subject: [PATCH] Don't insert an empty div on the index when there's no pages --- app/templates/index.html | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/app/templates/index.html b/app/templates/index.html index 5f5f4a7..8db1638 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -39,15 +39,17 @@ {% endfor %} -
- {% if has_previous_page %} - Previous - {% endif %} + {% if has_previous_page or has_next_page %} +
+ {% if has_previous_page %} + Previous + {% endif %} - {% if has_next_page %} - Next - {% endif %} -
+ {% if has_next_page %} + Next + {% endif %} +
+ {% endif %} {% else %}