mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
0ce1455aac
Since [this commit], the website builder has been rewritten. Due to it, `we-` options are deprecated. This commit adapts all the `xpath` to old options into the new way of doing. This commit also adapts the `theme_menu_hierarchies` tour for it to work with the new builder. [this commit]: https://github.com/odoo/odoo/commit/9fe45e2b7ddbbfd0445ffe25a859e67a316d02b2 Related to task-4367641 runbot-223813 runbot-223815 closes odoo/design-themes#1087 Related: odoo/odoo#211725 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
36 lines
1.5 KiB
XML
36 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<!-- Theme Header - Layout -->
|
|
<template id="template_header_custom" inherit_id="website.layout" name="Test Theme Custom Header Template">
|
|
<xpath expr="//header//nav" position="replace">
|
|
<nav data-name="Navbar" class="navbar navbar-expand-lg">
|
|
<div class="container">
|
|
<t t-call="website.placeholder_header_brand"/>
|
|
<t t-call="website.navbar_nav">
|
|
<!-- Menu -->
|
|
<t t-foreach="website.menu_id.child_id" t-as="submenu">
|
|
<t t-call="website.submenu">
|
|
<t t-set="item_class" t-valuef="nav-item"/>
|
|
<t t-set="link_class" t-valuef="nav-link"/>
|
|
</t>
|
|
</t>
|
|
<!-- Sign In -->
|
|
<t t-call="portal.placeholder_user_sign_in">
|
|
<t t-set="_item_class" t-valuef="nav-item"/>
|
|
<t t-set="_link_class" t-valuef="nav-link text-900"/>
|
|
</t>
|
|
<!-- User Dropdown -->
|
|
<t t-call="portal.user_dropdown">
|
|
<t t-set="_user_name" t-value="true"/>
|
|
<t t-set="_item_class" t-valuef="nav-item dropdown ml-auto"/>
|
|
<t t-set="_link_class" t-valuef="nav-link text-900"/>
|
|
</t>
|
|
</t>
|
|
</div>
|
|
</nav>
|
|
</xpath>
|
|
</template>
|
|
|
|
</odoo>
|