Merge branch 'sql/dot-notation'
[mediagoblin.git] / mediagoblin / templates / mediagoblin / utils / prev_next.html
index e054ed2335f312e365eabec3dc1a9fc138672528..b0c019637ac16c96ef8deb8e7fcba56b299a0ad6 100644 (file)
@@ -1,6 +1,6 @@
 {#
 # 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 }}">
+        &larr; {% trans %}newer{% endtrans %}
+      </a>
+    {% else %}
+      {# This is the first entry. display greyed-out 'previous' image #}
+      <p class="navigation_button navigation_left">
+        &larr; {% 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 %} &rarr;
+      </a>
+    {% else %}
+      {# This is the last entry. display greyed-out 'next' image #}
+      <p class="navigation_button">
+        {% trans %}older{% endtrans %} &rarr;
+      </p>
+    {% endif %}
+  </div>
+{% endif %}