view sat_templates/templates/bulma/input/navigation.html @ 289:f1a39607d6a5

bulma (base/base.html): `full_screen_body` parameter + body_wrapper: - if `full_screen_body` is set in template, the `body--fullscreen` class will be added to `<body>` element. It will then be a flexbox container (in columns), and displayed on the whole viewport. - new `body_wrapper` block, if a page needs to replace the `#body` container.
author Goffi <goffi@goffi.org>
date Mon, 28 Sep 2020 17:25:26 +0200
parents 741dae9b0612
children 3db3509cbad1
line wrap: on
line source

{% macro prev_next(prev_label=_("newer"), next_label=_("older")) %}
<section class="section">
    <nav class="pagination is-rounded" role="navigation" aria-label="pagination">
        {% if previous_page_url is defined %}
            <a href="{{previous_page_url}}" class="pagination-previous has-background-white">{{prev_label}}</a>
        {% else %}
            <a class="pagination-previous pagination-disabled has-background-white has-text-grey-light has-hover-white-light">{{prev_label}}</a>
        {% endif %}
        {% if next_page_url is defined %}
            <a href="{{next_page_url}}" class="pagination-next has-background-white">{{next_label}}</a>
        {% else %}
            <a class="pagination-next pagination-disabled has-background-white has-text-grey-light has-hover-white-light">{{next_label}}</a>
        {% endif %}
    </nav>
</section>
{% endmacro %}