view sat_templates/templates/default/components/common.html @ 348:789ebf39b2d8

i18n: Translated using Weblate (French) Currently translated at 100.0% (213 of 213 strings) Translation: Libervia/Templates Translate-URL: https://salut-a-toi.org/weblate/projects/libervia/templates/fr/
author Goffi <tmp-weblate_goffi.org@goffi.org>
date Thu, 18 Nov 2021 16:25:27 +0000
parents 7539d98e1d08
children
line wrap: on
line source

{% import 'components/menu_labels.html' as ml with context %}
{# we need to use "with context" to disable cache, needed for i18n #}

{% macro menu(menus, class='') %}
    <nav class="menu {{class}}">
        <ul>
        {% for name,url in menus %}
            <li><a class="menu_item menu_item--{{name}}" {{ {'href': url}|xmlattr }}>{{ml.label[name]}}</a></li>
        {% endfor %}
        </ul>
        {% if caller is defined %}
            {{ caller()}}
        {% endif %}
    </nav>
{% endmacro %}