Mercurial > libervia-templates
comparison sat_templates/templates/default/input/navigation.html @ 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 | 4a03d0a6839b |
comparison
equal
deleted
inserted
replaced
166:178f55b825b7 | 167:6f05d4bdc58e |
---|---|
1 {% macro prev_next(prev_label=_("newer"), next_label=_("older")) %} | 1 {% macro prev_next(prev_label=_("newer"), next_label=_("older")) %} |
2 <nav class="prev_next box box--large box--zero"> | 2 <nav class="prev_next box box--large box--zero"> |
3 <ul> | 3 <ul> |
4 {% if newer_url is defined %} | 4 {% if previous_page_url is defined %} |
5 <li class="prev_next__newer"> | 5 <li class="prev_next__previous"> |
6 <a href="{{newer_url}}"> | 6 <a href="{{previous_page_url}}"> |
7 {{ icon('angle-double-left', cls='icon--small') }} | 7 {{ icon('angle-double-left', cls='icon--small') }} |
8 {{prev_label}} | 8 {{prev_label}} |
9 </a> | 9 </a> |
10 </li> | 10 </li> |
11 {% endif %} | 11 {% endif %} |
12 {% if older_url is defined %} | 12 {% if next_page_url is defined %} |
13 <li class="prev_next__older"> | 13 <li class="prev_next__next"> |
14 <a href="{{older_url}}"> | 14 <a href="{{next_page_url}}"> |
15 {{next_label}} | 15 {{next_label}} |
16 {{ icon('angle-double-right', cls='icon--small') }} | 16 {{ icon('angle-double-right', cls='icon--small') }} |
17 </a> | 17 </a> |
18 </li> | 18 </li> |
19 {% endif %} | 19 {% endif %} |