comparison sat_templates/templates/default/components/common.html @ 164:e9f0a4215e46

multi-sites handling (moved templates to "templates" sub-directory) + noscript styles handling.
author Goffi <goffi@goffi.org>
date Mon, 10 Sep 2018 08:53:33 +0200
parents sat_templates/default/components/common.html@80cf52fbcc40
children 178f55b825b7
comparison
equal deleted inserted replaced
163:33f67228686a 164:e9f0a4215e46
1 {# menu labels, map from menu names to labels #}
2 {% set ml = {
3 'login': _('Session') if profile else _('Log in'),
4 'blog': _('Blog'),
5 'forums': _('Forums'),
6 'merge-requests': _('Merge requests'),
7 'merge-request_new': _('Create new merge request'),
8 'tickets': _('Tickets'),
9 'tickets_list': _('List tickets'),
10 'ticket_new': _('Create new ticket'),
11 'chat': _('Chat'),
12 'files': _('Files sharing'),
13 'events': _('Events'),
14 'event_new': _('Create an event'),
15 'photos': _('Photos albums'),
16 'app': _('Application'),
17 } %}
18
19 {% macro menu(menus, class='') %}
20 <nav class="menu {{class}}">
21 <ul>
22 {% for name,url in menus %}
23 <li><a class="menu_item menu_item--{{name}}" {{ {'href': url}|xmlattr }}>{{ml[name]}}</a></li>
24 {% endfor %}
25 </ul>
26 </nav>
27 {% endmacro %}