[FIX] website: navbar template: don't call web.menu_link

for new design compatibility (those templates have been moved client-side)
This commit is contained in:
Aaron Bohy
2015-06-18 21:23:37 +02:00
parent 30db606c0f
commit bd3bf97dce
@@ -19,7 +19,17 @@
<a href="#" class="dropdown-toggle hidden-xs" data-toggle="dropdown"><i class="fa fa-th-large"></i> Website<b class="caret"/></a>
<ul class="dropdown-menu">
<li t-foreach="menu_data['children']" t-as="menu">
<t t-call="web.menu_link"/>
<t t-set="debug_param" t-value="'?&amp;debug=' if debug else ''"/>
<a t-att-href="'/web%s#menu_id=%s&amp;action=%s' % (debug_param, menu['id'], menu['action'] and menu['action'].split(',')[1] or '')"
t-att-class="'oe_menu_toggler' if menu.get('children') else 'oe_menu_leaf'"
t-att-data-menu="menu['id']"
t-att-data-action-model="menu['action'] and menu['action'].split(',')[0] or ''"
t-att-data-action-id="menu['action'] and menu['action'].split(',')[1] or ''">
<i t-if="menu.get('icon')" t-attf-class="fa #{menu.get('icon')} fa-lg fa-fw"/>
<span class="oe_menu_text">
<t t-esc="menu['name']"/>
</span>
</a>
</li>
</ul>
</li>