Merge remote branch 'remotes/gullydwarf-cfdv/b503_remove_inert_prev_nav_buttons'

This commit is contained in:
Christopher Allan Webber 2011-08-30 22:41:51 -05:00
commit f305707e7c

View File

@ -20,27 +20,29 @@
{% set prev_entry_url = media.url_to_prev(request.urlgen) %} {% set prev_entry_url = media.url_to_prev(request.urlgen) %}
{% set next_entry_url = media.url_to_next(request.urlgen) %} {% set next_entry_url = media.url_to_next(request.urlgen) %}
<div> {% if prev_entry_url or next_entry_url %}
{# There are no previous entries for the very first media entry #} <div class="grid_5 alpha omega">
{% if prev_entry_url %} {# There are no previous entries for the very first media entry #}
<a class="navigation_button navigation_left" href="{{ prev_entry_url }}"> {% if prev_entry_url %}
<img src="/mgoblin_static/images/navigation_left.png" alt="Previous image" /> <a class="navigation_button navigation_left" href="{{ prev_entry_url }}">
</a> <img src="/mgoblin_static/images/navigation_left.png" alt="Previous image" />
{% else %} </a>
{# This is the first entry. display greyed-out 'previous' image #} {% else %}
<p class="navigation_button navigation_left"> {# This is the first entry. display greyed-out 'previous' image #}
<img src="/mgoblin_static/images/navigation_end.png" alt="No previous images" /> <p class="navigation_button navigation_left">
</p> <img src="/mgoblin_static/images/navigation_end.png" alt="No previous images" />
{% endif %} </p>
{# Likewise, this could be the very last media entry #} {% endif %}
{% if next_entry_url %} {# Likewise, this could be the very last media entry #}
<a class="navigation_button" href="{{ next_entry_url }}"> {% if next_entry_url %}
<img src="/mgoblin_static/images/navigation_right.png" alt="Next image" /> <a class="navigation_button" href="{{ next_entry_url }}">
</a> <img src="/mgoblin_static/images/navigation_right.png" alt="Next image" />
{% else %} </a>
{# This is the last entry. display greyed-out 'next' image #} {% else %}
<p class="navigation_button"> {# This is the last entry. display greyed-out 'next' image #}
<img src="/mgoblin_static/images/navigation_end.png" alt="No following images" /> <p class="navigation_button">
</p> <img src="/mgoblin_static/images/navigation_end.png" alt="No following images" />
{% endif %} </p>
</div> {% endif %}
</div>
{% endif %}