summaryrefslogtreecommitdiff
path: root/addons/web_mobile/static/src/xml
diff options
context:
space:
mode:
authorJiten (OpenERP) <jra@tinyerp.com>2011-09-27 11:44:28 +0530
committerJiten (OpenERP) <jra@tinyerp.com>2011-09-27 11:44:28 +0530
commit0f83246331158ca5f63ee237f2d8affdfc4b089e (patch)
treeb8b4089447cf6ed81947be62c0e4ef3efaa040ef /addons/web_mobile/static/src/xml
parentd51feac91a138d6ba43f973ded6288fd010ed7b9 (diff)
[IMP] Improved secondary menu for more than two child on menu tree.
bzr revid: jra@tinyerp.com-20110927061428-loq3ew8fwdhhay6w
Diffstat (limited to 'addons/web_mobile/static/src/xml')
-rw-r--r--addons/web_mobile/static/src/xml/web_mobile.xml11
1 files changed, 9 insertions, 2 deletions
diff --git a/addons/web_mobile/static/src/xml/web_mobile.xml b/addons/web_mobile/static/src/xml/web_mobile.xml
index f5825861813..d2df9a1fed9 100644
--- a/addons/web_mobile/static/src/xml/web_mobile.xml
+++ b/addons/web_mobile/static/src/xml/web_mobile.xml
@@ -95,12 +95,19 @@
<t t-foreach="menu.children" t-as="menu1" >
<ul data-dividertheme="b" data-theme="c" data-inset="true" data-role="listview">
<li data-role="list-divider">
- <t t-esc="menu1.name"/>
+ <t t-if="(menu1.children.length)">
+ <t t-esc="menu1.name"/>
+ </t>
+ <t t-if="!(menu1.children.length)">
+ <a href="#" t-attf-id="menu_#{menu1.id}" t-att-data-menu="menu1.id" t-att-data-name="menu1.name">
+ <t t-esc="menu1.name"/>
+ </a>
+ </t>
</li>
<t t-if="menu1.children.length">
<li data-theme="c" t-foreach="menu1.children" t-as="childmenu" >
<a href="#" t-attf-id="menu_#{childmenu.id}" t-att-data-menu="childmenu.id" t-att-data-name="childmenu.name">
- <t t-esc="childmenu.name" />
+ <t t-esc="childmenu.name" />
</a>
</li>
</t>