{% 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='') %} {% for name, url in menus %} {{ml.label[name] or name}} {% endfor %} {{locale.language_name}} {% for l in locales|reject("eq", locale) %} {{l.language_name}} {% endfor %} {% endmacro %} {% macro action_button(url, label=_("create"), icon="plus-circled", class="is-primary is-rounded", id=none) %} {{label}} {% endmacro %}