view sat_templates/templates/default/components/common.html @ 184:6b13a2d800e5

i18n (babel.ini): specify "encoding" and use "trimmed"
author Goffi <goffi@goffi.org>
date Fri, 12 Apr 2019 14:17:34 +0200
parents 240bbac435f4
children 7539d98e1d08
line wrap: on
line source

{% import 'components/menu_labels.html' as ml %}

{% 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 %}