Commit b23585e9 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

cleanup WebSection_viewNavigationWidget.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26795 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f62ac842
...@@ -46,37 +46,29 @@ ...@@ -46,37 +46,29 @@
<tal:block replace="nothing">\n <tal:block replace="nothing">\n
<!--\n <!--\n
This widget displays the list of Sections contained in the current context.\n This widget displays the list of Sections contained in the current context.\n
It uses the properties defined on sections to decide whether \n It uses the properties defined on sections to decide whether sections\n
\n
TODO:\n
- make sure translation is possible or working\n
- make sure URLs are correct\n
- use generic method (erp5_web) to retrieve the list of subsections\n
- make it hierarchic\n
-->\n -->\n
</tal:block>\n </tal:block>\n
\n \n
<tal:block tal:define="current_web_site python:request.get(\'current_web_site\', here);\n <tal:block tal:define="current_web_site python:request.get(\'current_web_site\', here);\n
menu_item_list python:current_web_site.WebSection_getSiteMapTree(depth=3)">\n menu_item_list python:current_web_site.WebSection_getSiteMapTree(depth=3)">\n
<ul tal:repeat="menu_item menu_item_list"\n <ul tal:repeat="menu_item menu_item_list">\n
i18n:translate="" i18n:domain="ui" i18n:attributes="title"\n <li tal:condition="python: menu_item is not None">\n
title="Navigate threw the web site.">\n <tal:block tal:condition="not:nocall:menu_item/subsection"><a tal:attributes="href menu_item/url" tal:content="menu_item/translated_title">Menu</a></tal:block>\n
<li tal:condition="python: menu_item is not None"><a href="#" tal:attributes="href menu_item/url"\n <tal:block tal:condition="nocall:menu_item/subsection">\n
tal:content="menu_item/translated_title">Drop-down Menu<!--[if IE 7]><!--></a><!--<![endif]-->\n <a tal:attributes="href menu_item/url"><tal:block tal:replace="menu_item/translated_title">Drop-down Menu</tal:block><!--[if IE 7]><!--></a><!--<![endif]-->\n
<!--[if lte IE 6]><table><tr><td><![endif]-->\n <!--[if lte IE 6]><table><tr><td><![endif]-->\n
<ul metal:define-macro="generateTree">\n <ul metal:define-macro="generateTree">\n
<li tal:repeat="item menu_item/subsection">\n <li tal:repeat="item menu_item/subsection">\n
<a href="#" tal:attributes="href item/url" tal:content="item/translated_title">Menu subitem 1</a>\n <a href="#" tal:attributes="href item/url" tal:content="item/translated_title">Menu subitem 1</a>\n
<tal:recurse define="menu_item item"\n <tal:recurse define="menu_item item">\n
condition="nocall: menu_item/subsection">\n
<metal:call use-macro="here/WebSection_viewNavigationWidget/macros/generateTree" />\n <metal:call use-macro="here/WebSection_viewNavigationWidget/macros/generateTree" />\n
</tal:recurse>\n </tal:recurse>\n
</li>\n </li>\n
</ul>\n </ul>\n
<!--[if lte IE 6]></td></tr></table></a><![endif]-->\n <!--[if lte IE 6]></td></tr></table></a><![endif]-->\n
</tal:block>\n
</li>\n </li>\n
<li tal:condition="not:menu_item/subsection"><a href="#" tal:attributes="href menu_item/url" \n
tal:content="menu_item/translated_title">Overview</a></li>\n
</ul>\n </ul>\n
</tal:block>\n </tal:block>\n
......
76 77
\ 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