mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[REF] theme_cobalt, *: migrate from deprecated t-esc to t-out
*: theme_graphene, theme_kiddo, theme_odoo_experts, theme_paptic, theme_test_custo See also : https://github.com/odoo/odoo/pull/168191 task-3573251 closes odoo/design-themes#804 Related: odoo/odoo#168191 Related: odoo/enterprise#65501 Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
This commit is contained in:
@@ -183,7 +183,7 @@
|
|||||||
|
|
||||||
<!-- ==== Call To Action ===== -->
|
<!-- ==== Call To Action ===== -->
|
||||||
<template id="s_call_to_action" inherit_id="website.s_call_to_action" name="Cobalt s_call_to_action">
|
<template id="s_call_to_action" inherit_id="website.s_call_to_action" name="Cobalt s_call_to_action">
|
||||||
<xpath expr="//t[@t-esc='cta_btn_text']" position="replace" mode="inner">
|
<xpath expr="//t[@t-out='cta_btn_text']" position="replace" mode="inner">
|
||||||
START NOW
|
START NOW
|
||||||
</xpath>
|
</xpath>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
Our mission is to give customers the best experience.<br/>Extensive documentation & guides, an active community,<br/>24/7 support make it a pleasure to work with us.
|
Our mission is to give customers the best experience.<br/>Extensive documentation & guides, an active community,<br/>24/7 support make it a pleasure to work with us.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<a t-att-href="cta_btn_href" class="btn btn-primary btn-lg o_translate_inline"><t t-esc="cta_btn_text">Contact us</t></a>
|
<a t-att-href="cta_btn_href" class="btn btn-primary btn-lg o_translate_inline"><t t-out="cta_btn_text">Contact us</t></a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
<h3 style="text-align: center;">2,000 parents<br/> brought their kid to our nursery.</h3>
|
<h3 style="text-align: center;">2,000 parents<br/> brought their kid to our nursery.</h3>
|
||||||
<p style="text-align: center;">Entrust us with your children and go to work with peace of mind</p>
|
<p style="text-align: center;">Entrust us with your children and go to work with peace of mind</p>
|
||||||
<p><br/></p>
|
<p><br/></p>
|
||||||
<p style="text-align: center;"><a t-att-href="cta_btn_href" class="btn btn-primary btn-lg o_translate_inline"><t t-esc="cta_btn_text">Contact us</t></a></p>
|
<p style="text-align: center;"><a t-att-href="cta_btn_href" class="btn btn-primary btn-lg o_translate_inline"><t t-out="cta_btn_text">Contact us</t></a></p>
|
||||||
</div>
|
</div>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
<!-- Add a button -->
|
<!-- Add a button -->
|
||||||
<xpath expr="//p[1]" position="after">
|
<xpath expr="//p[1]" position="after">
|
||||||
<p style="text-align: center;">
|
<p style="text-align: center;">
|
||||||
<a t-att-href="cta_btn_href" class="btn btn-primary rounded-circle btn-lg o_translate_inline"><t t-esc="cta_btn_text">Contact Us</t></a>
|
<a t-att-href="cta_btn_href" class="btn btn-primary rounded-circle btn-lg o_translate_inline"><t t-out="cta_btn_text">Contact Us</t></a>
|
||||||
</p>
|
</p>
|
||||||
</xpath>
|
</xpath>
|
||||||
<!-- Image -->
|
<!-- Image -->
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
<t t-set="animal_menu" t-value="request.env.ref('theme_test_custo.main_menu_animals')"/>
|
<t t-set="animal_menu" t-value="request.env.ref('theme_test_custo.main_menu_animals')"/>
|
||||||
<li t-foreach="request.env['website.menu'].search([('theme_template_id', '=', animal_menu.id), ('website_id', '=', request.website.id)]).child_id" t-as="menu">
|
<li t-foreach="request.env['website.menu'].search([('theme_template_id', '=', animal_menu.id), ('website_id', '=', request.website.id)]).child_id" t-as="menu">
|
||||||
<a t-att-href="menu.url" t-esc="menu.name"/>
|
<a t-att-href="menu.url" t-out="menu.name"/>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user