changeset 167:6f05d4bdc58e

navigation, CSS: use "previous" and "next" instead of "older" and "newer" for previous and next pages
author Goffi <goffi@goffi.org>
date Fri, 11 Jan 2019 21:49:14 +0100
parents 178f55b825b7
children 9e9ce1ae8b53
files sat_templates/templates/default/input/navigation.html sat_templates/templates/default/static/styles.css
diffstat 2 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/sat_templates/templates/default/input/navigation.html	Wed Oct 03 21:00:24 2018 +0200
+++ b/sat_templates/templates/default/input/navigation.html	Fri Jan 11 21:49:14 2019 +0100
@@ -1,17 +1,17 @@
 {% macro prev_next(prev_label=_("newer"), next_label=_("older")) %}
     <nav class="prev_next box box--large box--zero">
         <ul>
-            {% if newer_url is defined %}
-                <li class="prev_next__newer">
-                    <a href="{{newer_url}}">
+            {% if previous_page_url is defined %}
+                <li class="prev_next__previous">
+                    <a href="{{previous_page_url}}">
                         {{ icon('angle-double-left', cls='icon--small') }}
                         {{prev_label}}
                     </a>
                 </li>
             {% endif %}
-            {% if older_url is defined %}
-                <li class="prev_next__older">
-                    <a href="{{older_url}}">
+            {% if next_page_url is defined %}
+                <li class="prev_next__next">
+                    <a href="{{next_page_url}}">
                         {{next_label}}
                         {{ icon('angle-double-right', cls='icon--small') }}
                     </a>
--- a/sat_templates/templates/default/static/styles.css	Wed Oct 03 21:00:24 2018 +0200
+++ b/sat_templates/templates/default/static/styles.css	Fri Jan 11 21:49:14 2019 +0100
@@ -928,7 +928,7 @@
     flex: 1;
 }
 
-.prev_next li.prev_next__older {
+.prev_next li.prev_next__next {
     text-align: right;
 }