From e3df834a8a22a45ba77940efbd083c7d5a23764e Mon Sep 17 00:00:00 2001 From: Caleb Forbes Davis V Date: Sun, 21 Aug 2011 00:09:28 -0500 Subject: [PATCH] Bug #503 - removes inert navigation buttons - the grey X navigation buttons indicating the first and last media entries should not appear since they do not do anything --- .../mediagoblin/utils/prev_next.html | 38 +++++++------------ 1 file changed, 14 insertions(+), 24 deletions(-) diff --git a/mediagoblin/templates/mediagoblin/utils/prev_next.html b/mediagoblin/templates/mediagoblin/utils/prev_next.html index 7cf8d2a4..f8a746d9 100644 --- a/mediagoblin/templates/mediagoblin/utils/prev_next.html +++ b/mediagoblin/templates/mediagoblin/utils/prev_next.html @@ -20,27 +20,17 @@ {% set prev_entry_url = media.url_to_prev(request.urlgen) %} {% set next_entry_url = media.url_to_next(request.urlgen) %} -
- {# There are no previous entries for the very first media entry #} - {% if prev_entry_url %} - - Previous image - - {% else %} - {# This is the first entry. display greyed-out 'previous' image #} - - {% endif %} - {# Likewise, this could be the very last media entry #} - {% if next_entry_url %} - - Next image - - {% else %} - {# This is the last entry. display greyed-out 'next' image #} - - {% endif %} -
+{% if prev_entry_url or next_entry_url %} +
+ {% if prev_entry_url %} + + Previous image + + {% endif %} + {% if next_entry_url %} + + Next image + + {% endif %} +
+{% endif %} -- 2.25.1