[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:
Serge Bayet (seba)
2024-06-05 15:31:37 +02:00
parent a5f3a0d7bb
commit f6e39e4b0a
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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>
+1 -1
View File
@@ -22,7 +22,7 @@
Our mission is to give customers the best experience.<br/>Extensive documentation &amp; 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 &amp; 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 -->
+1 -1
View File
@@ -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>