From 0a100476b24d81355342cae5320e1a5a6c83014d Mon Sep 17 00:00:00 2001 From: Caleb Forbes Davis V Date: Sun, 21 Aug 2011 01:03:02 -0500 Subject: [PATCH] only remove the inert Xs when the user has one item --- .../templates/mediagoblin/utils/prev_next.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/mediagoblin/templates/mediagoblin/utils/prev_next.html b/mediagoblin/templates/mediagoblin/utils/prev_next.html index f8a746d9..8c0cee02 100644 --- a/mediagoblin/templates/mediagoblin/utils/prev_next.html +++ b/mediagoblin/templates/mediagoblin/utils/prev_next.html @@ -22,15 +22,27 @@ {% if prev_entry_url or next_entry_url %}
+ {# 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 %}
{% endif %} -- 2.25.1