X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=templates%2Fwebpages%2Fmenu%2Fmenunew.html;h=df3ed7b39136748ab6396ddca45a83386017dbc4;hb=b535245ea43c412ea0912fbe3c25d90d5f285233;hp=55fcab82b23a987b24fbb7d7d2816d2999ca8323;hpb=c62c6c256d35c5c807f9c9d4d264f5d69c076b6e;p=kivitendo-erp.git
diff --git a/templates/webpages/menu/menunew.html b/templates/webpages/menu/menunew.html
index 55fcab82b..df3ed7b39 100644
--- a/templates/webpages/menu/menunew.html
+++ b/templates/webpages/menu/menunew.html
@@ -1,65 +1,31 @@
[%- USE T8 %]
-[% USE HTML %][%- USE LxERP -%]
-
-
-
-
-
-
+[%- USE L %]
+[%- USE HTML %]
+[%- USE LxERP -%]
-
[%- SET main_id = '100' %]
- [%- FOREACH mainitem = menu_items %]
+ [%- FOREACH node = menu.tree %]
+ [%- NEXT UNLESS node.visible %]
[%- SET main_id = main_id + 1 %]
- -
-
- [%- HTML.escape(mainitem.title) %]
-
- [%- IF mainitem.subitems %]
-
+ -
+ [% L.link(menu.href_for_node(node) || '#', menu.name_for_node(node), target=node.target) %]
+ [%- IF node.children %]
+
[%- SET sub1_id = main_id * 100 %]
- [%- FOREACH sub1item = mainitem.subitems %]
+ [%- FOREACH sub1node = node.children %]
+ [%- NEXT UNLESS sub1node.visible %]
[%- SET sub1_id = sub1_id + 1 %]
- -
-
- [%- HTML.escape(sub1item.title) %]
-
- [%- IF sub1item.subitems %]
-
+ -
+ [% L.link(menu.href_for_node(sub1node) || '#', menu.name_for_node(sub1node), target=sub1node.target) %]
+ [%- IF sub1node.children %]
+
[%- SET sub2_id = sub1_id * 100 %]
- [%- FOREACH sub2item = sub1item.subitems %]
+ [%- FOREACH sub2node = sub1node.children %]
+ [%- NEXT UNLESS sub2node.visible %]
[%- SET sub2_id = sub2_id + 1 %]
- -
-
- [%- HTML.escape(sub2item.title) %]
-
+
-
+ [% L.link(menu.href_for_node(sub2node) || '#', menu.name_for_node(sub2node), target=sub2node.target) %]
[%- END %]
@@ -71,30 +37,3 @@ $(clockon);
[%- END %]
-
-