Skip to content
Snippets Groups Projects
Commit 275c4622 authored by Benjamin - Le Filament's avatar Benjamin - Le Filament
Browse files

[update] navbar template

parent 5eb79eb4
Branches
No related tags found
No related merge requests found
......@@ -14,9 +14,16 @@
<xpath expr="//header/nav" position="attributes">
<attribute name="class">navbar navbar-expand-md</attribute>
</xpath>
<xpath expr="//a[hasclass('logo')]" position="inside">
<!-- Masque le logo initial si logo défini par l'utilisateur -->
<xpath expr="//a[hasclass('logo')]" position="attributes">
<attribute name="t-if">not website.header_image</attribute>
</xpath>
<!-- Ajoute le logo défini par l'utilisateur -->
<xpath expr="//a[hasclass('logo')]" position="after">
<t t-if="website.header_image">
<img t-attf-src="data:image/*;base64,{{website.header_image}}" style="margin-left: 5px;"/>
<a href="/" class="navbar-brand logo">
<img t-attf-src="data:image/*;base64,{{website.header_image}}" t-att-alt="'Logo of %s' % res_company.name" t-att-title="res_company.name" />
</a>
</t>
</xpath>
</template>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment