Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REF] theme_cobalt, *: migrate from deprecated t-esc to t-out #804

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion theme_cobalt/views/customizations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,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 @@ -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.
</p>
<p>
<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[1]" 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_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