Mercurial > libervia-templates
annotate sat_templates/templates/default/components/common.html @ 402:2bbcb7da56bc default tip
bulma: use Font-Awesome instead of Fontello + start of major redesign:
- Font-Awesome is now used instead of Fontello, following change in Libervia Media.
- This is a beginning of a major redesign of the web templates/web frontend. This
currently breaks a lot of thing.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 26 Oct 2024 22:53:26 +0200 |
parents | 7539d98e1d08 |
children |
rev | line source |
---|---|
187
7539d98e1d08
components (menu): disable cache when importing "menu_labels":
Goffi <goffi@goffi.org>
parents:
183
diff
changeset
|
1 {% import 'components/menu_labels.html' as ml with context %} |
7539d98e1d08
components (menu): disable cache when importing "menu_labels":
Goffi <goffi@goffi.org>
parents:
183
diff
changeset
|
2 {# we need to use "with context" to disable cache, needed for i18n #} |
66 | 3 |
4 {% macro menu(menus, class='') %} | |
5 <nav class="menu {{class}}"> | |
6 <ul> | |
7 {% for name,url in menus %} | |
166
178f55b825b7
small refactoring/redesign, better BEM integration:
Goffi <goffi@goffi.org>
parents:
164
diff
changeset
|
8 <li><a class="menu_item menu_item--{{name}}" {{ {'href': url}|xmlattr }}>{{ml.label[name]}}</a></li> |
66 | 9 {% endfor %} |
10 </ul> | |
183 | 11 {% if caller is defined %} |
12 {{ caller()}} | |
13 {% endif %} | |
66 | 14 </nav> |
15 {% endmacro %} |