Skip to content

Commit

Permalink
[REF] theme_cobalt, *: migrate from deprecated t-esc to t-out
Browse files Browse the repository at this point in the history
*: theme_graphene, theme_kiddo, theme_odoo_experts, theme_paptic,
theme_test_custo

task-3573251
  • Loading branch information
SergeBayet committed Jun 5, 2024
1 parent b4c5bea commit bc64a67
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion theme_cobalt/views/customizations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@

<!-- ==== 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
</xpath>
</template>
Expand Down
2 changes: 1 addition & 1 deletion theme_graphene/views/customizations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,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.
</p>
<p style="text-align: right">
<a t-att-href="cta_btn_href" class="btn btn-primary btn-lg o_default_snippet_text"><t t-esc="cta_btn_text">Contact us</t></a>
<a t-att-href="cta_btn_href" class="btn btn-primary btn-lg o_default_snippet_text"><t t-out="cta_btn_text">Contact us</t></a>
</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion theme_kiddo/views/snippets/s_call_to_action.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<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><br/></p>
<p style="text-align: center;"><a t-att-href="cta_btn_href" class="btn btn-primary btn-lg"><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"><t t-out="cta_btn_text">Contact us</t></a></p>
</div>
</xpath>

Expand Down
2 changes: 1 addition & 1 deletion theme_odoo_experts/views/snippets/s_cover.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
Guided by expertise gained over 20 years of achieving success for clients, we practice with passion and strategic focus on the future.
</xpath>
<!-- Button -->
<xpath expr="//t[@t-esc='cta_btn_text']" position="replace" mode="inner">
<xpath expr="//t[@t-out='cta_btn_text']" position="replace" mode="inner">
Discover More
</xpath>
</template>
Expand Down
2 changes: 1 addition & 1 deletion theme_odoo_experts/views/snippets/s_picture.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<!-- Add a button -->
<xpath expr="//p[2]" position="after">
<p style="text-align: center;">
<a t-att-href="cta_btn_href" class="btn btn-primary rounded-circle btn-lg"><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"><t t-out="cta_btn_text">Contact Us</t></a>
</p>
</xpath>
<!-- Image -->
Expand Down
2 changes: 1 addition & 1 deletion theme_paptic/views/customizations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<xpath expr="//p[2]" position="replace">
<p>
<a href="#" class="btn btn-lg btn-primary mb-2">START NOW</a>&#160;&#160;&#160;&#160;
<a t-att-href="cta_btn_href" class="btn btn-lg btn-secondary mb-2"><t t-esc="cta_btn_text and cta_btn_text.upper()">SCHEDULE A DEMO</t></a>
<a t-att-href="cta_btn_href" class="btn btn-lg btn-secondary mb-2"><t t-out="cta_btn_text and cta_btn_text.upper()">SCHEDULE A DEMO</t></a>
</p>
</xpath>

Expand Down
2 changes: 1 addition & 1 deletion theme_test_custo/views/footer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<h5 class="mb-4">Useful Links</h5>
<ul class="list-unstyled">
<li t-foreach="request.env['website.menu'].search([('url', '=', '/main-menu-animals'), ('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>
</ul>
</div>
Expand Down

0 comments on commit bc64a67

Please sign in to comment.