view sat_templates/templates/default/input/navigation.html @ 166:178f55b825b7

small refactoring/redesign, better BEM integration: - blog has been redesigned, and almost all blog CSS has been made generic and moved to main styles.css file. - better noscript handling, dynamic elements are created using "magic" classes (dom_update.js) - using better icons for older/newer messages - better state handling, classes now use "state_XXX" - more classes now use BEM convention - menu labels have been moved to a separate template (components/menu_labels.html), so it can be overriden easily by other sites - better styles.css organisation
author Goffi <goffi@goffi.org>
date Wed, 03 Oct 2018 21:00:24 +0200
parents e9f0a4215e46
children 6f05d4bdc58e
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 newer_url is defined %}
                <li class="prev_next__newer">
                    <a href="{{newer_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}}">
                        {{next_label}}
                        {{ icon('angle-double-right', cls='icon--small') }}
                    </a>
                </li>
            {% endif %}
        </ul>
    </nav>
{% endmacro %}