{% set next_entry_url = media.url_to_next(request.urlgen) %}
{% if prev_entry_url or next_entry_url %}
- {# There are no previous entries for the very first media entry #}
- {% if prev_entry_url %}
- <a class="navigation_button navigation_left" href="{{ prev_entry_url }}">
- ← {% trans %}newer{% endtrans %}
- </a>
- {% else %}
- {# This is the first entry. display greyed-out 'previous' image #}
- <p class="navigation_button navigation_left">
- ← {% trans %}newer{% endtrans %}
- </p>
- {% endif %}
- {# Likewise, this could be the very last media entry #}
- {% if next_entry_url %}
- <a class="navigation_button navigation_right" href="{{ next_entry_url }}">
- {% trans %}older{% endtrans %} →
- </a>
- {% else %}
- {# This is the last entry. display greyed-out 'next' image #}
- <p class="navigation_button navigation_right">
- {% trans %}older{% endtrans %} →
- </p>
- {% endif %}
+ <div class="navigation">
+ {# There are no previous entries for the very first media entry #}
+ {% if prev_entry_url %}
+ <a class="navigation_button navigation_left" href="{{ prev_entry_url }}">
+ ← {% trans %}newer{% endtrans %}
+ </a>
+ {% else %}
+ {# This is the first entry. display greyed-out 'previous' image #}
+ <p class="navigation_button navigation_left">
+ ← {% trans %}newer{% endtrans %}
+ </p>
+ {% endif %}
+ {# Likewise, this could be the very last media entry #}
+ {% if next_entry_url %}
- <a class="navigation_button" href="{{ next_entry_url }}">
++ <a class="navigation_button navigation_right" href="{{ next_entry_url }}">
+ {% trans %}older{% endtrans %} →
+ </a>
+ {% else %}
+ {# This is the last entry. display greyed-out 'next' image #}
- <p class="navigation_button">
++ <p class="navigation_button navigation_right">
+ {% trans %}older{% endtrans %} →
+ </p>
+ {% endif %}
+ </div>
{% endif %}