summaryrefslogtreecommitdiff
path: root/addons/web_mobile/static/src/xml/web_mobile.xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web_mobile/static/src/xml/web_mobile.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>