[IMP] website, *: improve brand promotion in the footer
* web, website_event, website_sale, sale_quotation_builder Instead of an ugly danger-colored badge promoting "odoo", we now use the official odoo logo. The code is also refactored to use more consistent and translatable sentences without duplicated code. Note: the odoo logo is added in the repo, downloaded from our official brand assets page (https://www.odoo.com/page/brand-assets), in its 'tiny' version. The repo already contained multiple odoo logos but they are quite old and should be replaced in a further update. Note: the svg version was not able to be used as it contains external margins... Part of https://github.com/odoo/odoo/pull/34422 task-2026299
This commit is contained in:
@@ -83,11 +83,13 @@
|
||||
</template>
|
||||
|
||||
<template id="brand_promotion" inherit_id="website.brand_promotion">
|
||||
<xpath expr="//div[hasclass('o_brand_promotion')]" position="replace">
|
||||
<div class="o_brand_promotion">
|
||||
Powered by <a target="_blank" class="badge badge-danger" href="http://www.odoo.com/page/website-builder">Odoo</a>,
|
||||
an awesome <a target="_blank" href="http://www.odoo.com/page/crm">Open Source CRM</a>.
|
||||
</div>
|
||||
<xpath expr="//t[@t-call='web.brand_promotion_message']" position="replace">
|
||||
<t t-call="web.brand_promotion_message">
|
||||
<t t-set="_message">
|
||||
An awesome <a target="_blank" href="https://www.odoo.com/page/crm?utm_source=db&utm_medium=portal">Open Source CRM</a>
|
||||
</t>
|
||||
<t t-set="_utm_medium">portal</t>
|
||||
</t>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
@@ -478,9 +478,25 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="brand_promotion_message" name="Brand Promotion Message">
|
||||
<t t-set="odoo_logo">
|
||||
<a target="_blank"
|
||||
t-attf-href="http://www.odoo.com?utm_source=db&utm_medium=#{_utm_medium}"
|
||||
class="badge badge-light">
|
||||
<img alt="Odoo"
|
||||
src="/web/static/src/img/odoo_logo_tiny.png"
|
||||
style="height: 1em; vertical-align: baseline;"/>
|
||||
</a>
|
||||
</t>
|
||||
<t t-set="final_message">Powered by %s%s</t>
|
||||
<t t-raw="final_message % (odoo_logo, _message and ('- %s' % _message) or '')"/>
|
||||
</template>
|
||||
<template id="brand_promotion" name="Brand Promotion">
|
||||
<div class="o_brand_promotion">
|
||||
Powered by <a target="_blank" href="http://www.odoo.com?utm_source=db&utm_medium=portal">Odoo</a>
|
||||
<t t-call="web.brand_promotion_message">
|
||||
<t t-set="_message"></t>
|
||||
<t t-set="_utm_medium">portal</t>
|
||||
</t>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -291,11 +291,13 @@
|
||||
</template>
|
||||
|
||||
<template id="brand_promotion" inherit_id="web.brand_promotion" name="Brand Promotion">
|
||||
<xpath expr="//div[hasclass('o_brand_promotion')]" position="replace">
|
||||
<div class="o_brand_promotion">
|
||||
Create a <a target="_blank" href="http://www.odoo.com/page/website-builder?utm_source=db&utm_medium=website">free website</a> with
|
||||
<a target="_blank" class="badge badge-danger" href="http://www.odoo.com/page/website-builder?utm_source=db&utm_medium=website">Odoo</a>
|
||||
</div>
|
||||
<xpath expr="//t[@t-call='web.brand_promotion_message']" position="replace">
|
||||
<t t-call="web.brand_promotion_message">
|
||||
<t t-set="_message">
|
||||
Create a <a target="_blank" href="http://www.odoo.com/page/website-builder?utm_source=db&utm_medium=website">free website</a>
|
||||
</t>
|
||||
<t t-set="_utm_medium">website</t>
|
||||
</t>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -718,16 +718,6 @@
|
||||
</t>
|
||||
</template>
|
||||
|
||||
<template id="website_event.brand_promotion" inherit_id="website.brand_promotion">
|
||||
<xpath expr="//div[hasclass('o_brand_promotion')]" position="replace">
|
||||
<div class="o_brand_promotion">
|
||||
Powered by <a target="_blank" class="badge badge-danger" href="http://www.odoo.com/page/website-builder?utm_source=db&utm_medium=website">Odoo</a>.
|
||||
Try the <a target="_blank" href="http://www.odoo.com/page/website-builder?utm_source=db&utm_medium=website">open source website builder</a>.
|
||||
</div>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
|
||||
<!-- User Navbar -->
|
||||
<template id="user_navbar_inherit_website_event" inherit_id="website.user_navbar">
|
||||
<xpath expr="//div[@id='o_new_content_menu_choices']//div[@name='module_website_event']" position="attributes">
|
||||
|
||||
@@ -1644,11 +1644,13 @@
|
||||
</template>
|
||||
|
||||
<template id="website_sale.brand_promotion" inherit_id="website.brand_promotion">
|
||||
<xpath expr="//div[hasclass('o_brand_promotion')]" position="replace">
|
||||
<div class="o_brand_promotion">
|
||||
Powered by <a target="_blank" class="badge badge-danger" href="http://www.odoo.com/page/website-builder?utm_source=db&utm_medium=website">Odoo</a>,
|
||||
the #1 <a target="_blank" href="http://www.odoo.com/page/e-commerce?utm_source=db&utm_medium=website">Open Source eCommerce</a>.
|
||||
</div>
|
||||
<xpath expr="//t[@t-call='web.brand_promotion_message']" position="replace">
|
||||
<t t-call="web.brand_promotion_message">
|
||||
<t t-set="_message">
|
||||
The #1 <a target="_blank" href="http://www.odoo.com/page/e-commerce?utm_source=db&utm_medium=website">Open Source eCommerce</a>
|
||||
</t>
|
||||
<t t-set="_utm_medium">website</t>
|
||||
</t>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user