Mercurial > libervia-templates
view 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 |
line wrap: on
line source
{% macro prev_next(prev_label=_("newer"), next_label=_("older")) %} <nav class="prev_next box box--large box--zero"> <ul> {% 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 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> </li> {% endif %} </ul> </nav> {% endmacro %}