Revision cb0ee6d2
Von Sven Schöling vor mehr als 3 Jahren hinzugefügt
templates/webpages/menu/material.html | ||
---|---|---|
7 | 7 |
<a class="brand-logo">Kivitendo</a> |
8 | 8 |
<a href="#" data-target="nav-mobile" class="sidenav-trigger"><i class="material-icons">menu</i></a> |
9 | 9 |
<ul id="nav" class="right hide-on-med-and-down"> |
10 |
[%- FOREACH node = menu.tree %] |
|
11 |
[%- NEXT UNLESS node.visible %] |
|
12 |
<li>[% L.link(menu.href_for_node(node) || '#', menu.name_for_node(node), target=node.target) %]</li> |
|
13 |
[%- END %] |
|
10 |
[% PROCESS menu_items %] |
|
14 | 11 |
</ul> |
15 | 12 |
</div> |
16 | 13 |
</nav> |
17 | 14 |
|
18 | 15 |
<ul id="nav-mobile" class="sidenav"> |
16 |
[% PROCESS menu_items %] |
|
17 |
</ul> |
|
18 |
|
|
19 |
|
|
20 |
[%- BLOCK menu_items %] |
|
21 |
[%- IF MYCONFIG.login %] |
|
22 |
<li><div>[% 'User' | $T8 %]: [% MYCONFIG.login | html %]<div></li> |
|
23 |
[%- ELSE %] |
|
24 |
<li>[% L.link(C.url_for(controller='LoginScreen', action='user_login'), LxERP.t8('Login')) %]</li> |
|
25 |
[%- END %] |
|
26 |
|
|
27 |
<li><div class="divider"></div></li> |
|
28 |
|
|
19 | 29 |
[%- FOREACH node = menu.tree %] |
20 | 30 |
[%- NEXT UNLESS node.visible %] |
21 | 31 |
<li>[% L.link(menu.href_for_node(node) || '#', menu.name_for_node(node), target=node.target) %]</li> |
22 | 32 |
[%- END %] |
23 |
</ul> |
|
33 |
|
|
34 |
<li><div class="divider"></div></li> |
|
35 |
|
|
36 |
[%- IF MYCONFIG.login %] |
|
37 |
<li>[% L.link(C.url_for(controller='LoginScreen', action='logout'), LxERP.t8('Logout')) %]</li> |
|
38 |
[%- END %] |
|
39 |
[% END %] |
Auch abrufbar als: Unified diff
Mobile Menu: nur top level entries rendern