Mercurial > libervia-templates
view sat_templates/templates/bulma/input/navigation.html @ 363:cddac8502c4b
chat/message: fix urlize escaping on nunjucks:
Nunjucks imply to use `safe` when using `urlize`, while Jinja2 doesn't. Esacaping and safe
filter are added so that `urlize` can work with both engines.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 28 Jun 2023 10:40:53 +0200 |
parents | 3db3509cbad1 |
children |
line wrap: on
line source
{% macro prev_next(prev_label=_("older"), next_label=_("newer")) %} <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 %}