diff options
| author | qsm-odoo <qsm@odoo.com> | 2018-09-18 12:59:56 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2018-09-18 16:18:39 +0200 |
| commit | 7bc7775037df1a3f361f0d0efda9461eb4f200b7 (patch) | |
| tree | a483e3be75da5d7965693aeb2be629e5d7c2a464 | |
| parent | 71613d9eab1e0823b8059989afbf8fa05eb80116 (diff) | |
[REF] website: t-call s_share in carousel instead of copying it
| -rw-r--r-- | addons/website/views/snippets.xml | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/addons/website/views/snippets.xml b/addons/website/views/snippets.xml index ff05d6b8552..6ded41743b3 100644 --- a/addons/website/views/snippets.xml +++ b/addons/website/views/snippets.xml @@ -251,23 +251,10 @@ <h2><font style="font-size: 62px; background-color: rgb(255, 255, 255);">Edit this title</font></h2> <h4><font style="background-color: rgb(255, 255, 255);">Good writing is simple, but not simplistic.</font></h4> <p class="mt24">Good copy starts with understanding how your product or service helps your customers. Simple words communicate better than big words and pompous language.</p> - <div class="s_share text-left pt16 pb16"> - <a href="https://www.facebook.com/sharer/sharer.php?u={url}" class="s_share_facebook" target="_blank"> - <i class="fa fa-facebook rounded shadow-sm"/> - </a> - <a href="https://twitter.com/intent/tweet?text={title}&url={url}" class="s_share_twitter" target="_blank"> - <i class="fa fa-twitter rounded shadow-sm"/> - </a> - <a href="http://www.linkedin.com/shareArticle?mini=true&url={url}&title={title}&" class="s_share_linkedin" target="_blank"> - <i class="fa fa-linkedin rounded shadow-sm"/> - </a> - <a href="https://plus.google.com/share?url={url}" class="s_share_google" target="_blank"> - <i class="fa fa-google-plus rounded shadow-sm"/> - </a> - <a href="mailto:?body={url}&subject={title}" class="s_share_email"> - <i class="fa fa-envelope rounded shadow-sm"/> - </a> - </div> + <t t-call="website.s_share"> + <t t-set="_classes" t-value="'text-left pt16 pb16'"/> + <t t-set="_no_title" t-value="True"/> + </t> </div> </div> </div> @@ -307,8 +294,8 @@ </template> <template id="s_share" name="Share"> - <div class="s_share"> - <h4 class="s_share_title">Share</h4> + <div t-attf-class="s_share #{_classes or ''}"> + <h4 t-if="not _no_title" class="s_share_title">Share</h4> <a href="https://www.facebook.com/sharer/sharer.php?u={url}" class="s_share_facebook" target="_blank"> <i class="fa fa-1x fa-facebook rounded shadow-sm"/> </a> |
