view sat_templates/templates/default/input/navigation.html @ 230:0e69b5843c2f

theme: bulma theme first draft: This theme uses the Bulma CSS framework, Brython to handle the menu on touch devices, and Sass to customize Bulma. CSS default fallbacks are disabled as Bulma uses its own naming conventions, and default fallbacks would lead to hard to debug conflicts. `common.js` has been slightly improved to handle custom classed in `tab_select` The theme is not complete yet, but it is functional.
author Goffi <goffi@goffi.org>
date Tue, 19 May 2020 00:02:34 +0200
parents 4a03d0a6839b
children
line wrap: on
line source

{% macro prev_next(prev_label=_("newer"), next_label=_("older")) %}
    <nav class="prev_next box box--large box--zero">
        <ul class="list list--inline">
            {% if previous_page_url is defined %}
                <li class="prev_next__previous">
                    <a href="{{previous_page_url}}">
                        {{ icon('angle-double-left', cls='icon--text') }}
                        {{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--text') }}
                    </a>
                </li>
            {% endif %}
        </ul>
    </nav>
{% endmacro %}