From 7a55a5c9f2446850218917fb5413e462072b5d2f Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Wed, 9 Oct 2019 14:10:29 +0100 Subject: [PATCH] Hide prev/next when neither prev nor next are set Otherwise it still takes up vertical space on the page. --- .../components/previous-next-navigation.html | 62 ++++++++++--------- 1 file changed, 32 insertions(+), 30 deletions(-) diff --git a/app/templates/components/previous-next-navigation.html b/app/templates/components/previous-next-navigation.html index e7102d4a0..b73846c6a 100644 --- a/app/templates/components/previous-next-navigation.html +++ b/app/templates/components/previous-next-navigation.html @@ -1,32 +1,34 @@ {% macro previous_next_navigation(previous_page, next_page) %} - + {% if previous_page or next_page %} + + {% endif %} {% endmacro %}