summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml/mail_followers.xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/mail/static/src/xml/mail_followers.xml')
-rw-r--r--addons/mail/static/src/xml/mail_followers.xml98
1 files changed, 49 insertions, 49 deletions
diff --git a/addons/mail/static/src/xml/mail_followers.xml b/addons/mail/static/src/xml/mail_followers.xml
index dd6d9883abd..b7548f861fd 100644
--- a/addons/mail/static/src/xml/mail_followers.xml
+++ b/addons/mail/static/src/xml/mail_followers.xml
@@ -2,76 +2,76 @@
<templates>
<!--
- followers main template
+ Mail Follower (root template)
Template used to display the followers, the actions and the subtypes in a record.
- -->
-<div t-name="mail_followers" class="o_timeline_followers">
- <div t-attf-class="btn-group-sm o_timeline_follower_title_box">
- <button t-attf-class="btn btn-default dropdown-toggle o_timeline_partner_list"
- data-toggle="dropdown" aria-expanded="false">
- <span class="o_timeline_follower_title">Followers</span>
- <span class="caret"></span>
- </button>
- <ul class="dropdown-menu o_timeline_follower_list" role="menu"></ul>
- </div>
- <div class="oe_actions">
- <div t-attf-class="btn-group-sm o_timeline_subtype_list">
- <button class="btn btn-default o_timeline_follower o_timeline_notfollow">
- <span class="o_timeline_follow">Follow</span>
- <span class="fa fa-times o_timeline_unfollow" aria-hidden="true"> Unfollow</span>
- <span class="fa fa-check o_timeline_following" aria-hidden="true"> Following</span>
- </button>
- <button t-attf-class="btn btn-default dropdown-toggle o_timeline_sbtp_list"
+-->
+<t t-name="mail.Followers">
+ <div class="o_timeline_followers">
+ <div t-attf-class="btn-group-sm o_timeline_follower_title_box">
+ <button t-attf-class="btn btn-default dropdown-toggle o_timeline_partner_list"
data-toggle="dropdown" aria-expanded="false">
+ <span class="o_timeline_follower_title">Followers</span>
<span class="caret"></span>
</button>
- <ul class="dropdown-menu oe_subtype" role="menu"></ul>
+ <ul class="dropdown-menu o_timeline_follower_list" role="menu"></ul>
+ </div>
+ <div class="oe_actions">
+ <div t-attf-class="btn-group-sm o_timeline_subtype_list">
+ <button class="btn btn-default o_timeline_follower o_timeline_notfollow">
+ <span class="o_timeline_follow">Follow</span>
+ <span class="fa fa-times o_timeline_unfollow" aria-hidden="true"> Unfollow</span>
+ <span class="fa fa-check o_timeline_following" aria-hidden="true"> Following</span>
+ </button>
+ <button t-attf-class="btn btn-default dropdown-toggle o_timeline_sbtp_list"
+ data-toggle="dropdown" aria-expanded="false">
+ <span class="caret"></span>
+ </button>
+ <ul class="dropdown-menu oe_subtype" role="menu"></ul>
+ </div>
</div>
-
- <!--<t t-if="widget.comment">
- <h5 class="oe_comment"><t t-raw="widget.comment"/></h5>
- </t>-->
</div>
-</div>
+</t>
<!--
- followers.partner template
+ Mail Followers Partner template
Template used to display a partner following the record
- -->
-<li t-name="mail_followers_partner" class='oe_partner'>
- <span> <img class="oe_mail_thumbnail oe_mail_frame" t-att-src="record.avatar_url"/> </span>
- <span class="oe_partner_name">
- <a t-attf-href="#model=res.partner&amp;id=#{record.id}"
- t-att-title="record.name"
- t-att-data-res-model="record.res_model"
- t-att-data-res-id="record.res_id"
- t-att-data-id="record.id">
- <t t-esc="record.name"/></a>
- </span>
- <i t-if="record.is_editable and (widget.records_length &gt; 1)"
- class="oe_edit_subtype fa fa-pencil oe_hidden" title="Edit subscription"
- t-att-data-id="record.id"/>
- <i t-if="widget.view_is_editable" class="oe_remove_follower fa fa-remove"
- title="Remove this follower"/>
-</li>
+-->
+<t t-name="mail.Followers.partner">
+ <li class='oe_partner'>
+ <span> <img class="oe_mail_thumbnail oe_mail_frame" t-att-src="record.avatar_url"/> </span>
+ <span class="oe_partner_name">
+ <a t-attf-href="#model=res.partner&amp;id=#{record.id}"
+ t-att-title="record.name"
+ t-att-data-res-model="record.res_model"
+ t-att-data-res-id="record.res_id"
+ t-att-data-id="record.id">
+ <t t-esc="record.name"/></a>
+ </span>
+ <i t-if="record.is_editable and (widget.records_length &gt; 1)"
+ class="oe_edit_subtype fa fa-pencil oe_hidden" title="Edit subscription"
+ t-att-data-id="record.id"/>
+ <i t-if="widget.view_is_editable" class="oe_remove_follower fa fa-remove"
+ title="Remove this follower"/>
+ </li>
+</t>
-<t t-name="mail_followers_add_more">
- <li t-if="widget.view_is_editable" class="oe_invite">
+<t t-name="mail.Followers.add_more">
+ <li t-if="widget.view_is_editable" class="oe_invite">
<a href="#"> Add followers </a>
</li>
<li t-if="widget.view_is_editable and (widget.followers.length > 0)" class="divider"></li>
</t>
<!--
- followers.subtype template
+ Mail Followers Subtype template
Template used to display message subtypes of a follower subscription
-->
-<t t-name="mail_followers_subtype">
+<t t-name="mail.Followers.subtype">
<li class="oe_subtype">
- <input type="checkbox" t-att-checked="record.followed"
+ <input type="checkbox" t-att-checked="record.followed"
t-att-id="'input_mail_followers_subtype_'+record.id+(dialog ? '_in_dialog': '')"
t-att-data-id="record.id" t-att-name="record.name" class="o_timeline_msg_subtype_check"/>
-
+
<label t-att-for="'input_mail_followers_subtype_'+record.id+(dialog ? '_in_dialog': '')">
<t t-raw="record.name"/>
</label>