summaryrefslogtreecommitdiff
path: root/addons/website_mail/views/website_mail_templates.xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/website_mail/views/website_mail_templates.xml')
-rw-r--r--addons/website_mail/views/website_mail_templates.xml14
1 files changed, 13 insertions, 1 deletions
diff --git a/addons/website_mail/views/website_mail_templates.xml b/addons/website_mail/views/website_mail_templates.xml
index 856af90ca93..549043a28fb 100644
--- a/addons/website_mail/views/website_mail_templates.xml
+++ b/addons/website_mail/views/website_mail_templates.xml
@@ -10,7 +10,19 @@
class="js_follow_email form-control"
placeholder="your email..."
groups="base.group_public"/>
- <div t-att-class="(request.env.user.has_group('base.group_public') and 'input-group-append ' or '') + (div_class or '')">
+ <div t-if="icons_design and not request.env.user.has_group('base.group_public')" class="js_follow_icons_container">
+ <button class="btn text-reset js_unfollow_btn">
+ <div class="d-flex align-items-center">
+ <small>Unfollow</small><i class="fa fa-fw ml-1"/>
+ </div>
+ </button>
+ <button class="btn text-reset js_follow_btn">
+ <div class="d-flex align-items-center">
+ <small>Follow</small><i class="fa fa-fw ml-1"/>
+ </div>
+ </button>
+ </div>
+ <div t-else="" t-attf-class="#{request.env.user.has_group('base.group_public') and 'input-group-append'} #{div_class}">
<button href="#" t-attf-class="btn btn-secondary js_unfollow_btn">Unsubscribe</button>
<button href="#" t-attf-class="btn btn-primary js_follow_btn">Subscribe</button>
</div>