{#
# GNU MediaGoblin -- federated, autonomous media hosting
-# Copyright (C) 2011 Free Software Foundation, Inc
+# Copyright (C) 2011 MediaGoblin contributors. See AUTHORS.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
{% set prev_entry_url = media.url_to_prev(request.urlgen) %}
{% set next_entry_url = media.url_to_next(request.urlgen) %}
-<div>
- {# There are no previous entries for the very first media entry #}
- {% if prev_entry_url %}
- <a href="{{ prev_entry_url }}">
- {# TODO - insert 'Previous' and 'X' image sources #}
- Previous
- </a>
- {% else %}
- {# This is the first entry. display greyed-out 'previous' image #}
- X
- {% endif %}
-
- {# Likewise, this could be the very last media entry #}
- {% if next_entry_url %}
- <a href="{{ next_entry_url }}">
- {# TODO - insert 'Next' and 'X' image sources #}
- Next
- </a>
- {% else %}
- {# This is the last entry. display greyed-out 'next' image #}
- X
- {% endif %}
-</div>
+{% if prev_entry_url or next_entry_url %}
+ <div class="grid_5 alpha omega">
+ {# 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 }}">
+ {% trans %}older{% endtrans %} →
+ </a>
+ {% else %}
+ {# This is the last entry. display greyed-out 'next' image #}
+ <p class="navigation_button">
+ {% trans %}older{% endtrans %} →
+ </p>
+ {% endif %}
+ </div>
+{% endif %}