Commit da367d1a authored by Sebastien Robin's avatar Sebastien Robin

Fix collapse-menu class usage : it's for item with a sub-item list

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41944 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 832f853b
...@@ -78,13 +78,14 @@ ...@@ -78,13 +78,14 @@
<tal:block tal:condition="static_navigation_menu">\n <tal:block tal:condition="static_navigation_menu">\n
<tal:block tal:repeat="menu_item menu_item_list">\n <tal:block tal:repeat="menu_item menu_item_list">\n
\n \n
<li tal:define="sub_item_list menu_item/subsection">\n <li tal:define="sub_item_list menu_item/subsection"\n
tal:attributes="class python: sub_item_list and \'collapse-menu\' or \'\'">\n
<a tal:attributes="href menu_item/url" >\n <a tal:attributes="href menu_item/url" >\n
<tal:block tal:replace="menu_item/compact_translated_title | menu_item/translated_title">Menu</tal:block>\n <tal:block tal:replace="menu_item/compact_translated_title | menu_item/translated_title">Menu</tal:block>\n
</a>\n </a>\n
\n \n
<ul tal:condition="sub_item_list">\n <ul tal:condition="sub_item_list">\n
<li tal:repeat="menu_item sub_item_list" tal:attributes="class python: menu_item[\'url\'] and \'collapse-menu\' or \'\'">\n <li tal:repeat="menu_item sub_item_list">\n
<tal:block tal:condition="not:nocall:menu_item/subsection"><a tal:attributes="href menu_item/url" tal:content="menu_item/compact_translated_title | menu_item/translated_title">Menu</a></tal:block>\n <tal:block tal:condition="not:nocall:menu_item/subsection"><a tal:attributes="href menu_item/url" tal:content="menu_item/compact_translated_title | menu_item/translated_title">Menu</a></tal:block>\n
<tal:block tal:condition="nocall:menu_item/subsection">\n <tal:block tal:condition="nocall:menu_item/subsection">\n
<a tal:attributes="href menu_item/url"><tal:block tal:replace="menu_item/compact_translated_title | menu_item/translated_title">Drop-down Menu</tal:block><!--[if IE 7]><!--></a><!--<![endif]-->\n <a tal:attributes="href menu_item/url"><tal:block tal:replace="menu_item/compact_translated_title | menu_item/translated_title">Drop-down Menu</tal:block><!--[if IE 7]><!--></a><!--<![endif]-->\n
...@@ -102,8 +103,7 @@ ...@@ -102,8 +103,7 @@
</li>\n </li>\n
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
</tal:block> \n </tal:block>
]]></unicode> </value> ]]></unicode> </value>
</item> </item>
......
1728 1729
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment