[FIX] common.py: missing import
[odoo/odoo.git] / addons / mail / static / src / xml / mail_followers.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <template>
3
4     <!--
5         followers main template
6         Template used to display the followers, the actions and the subtypes in a record.
7         -->
8     <div t-name="mail.followers" class="oe_followers">        
9         <div class="oe_actions">
10             <button type="button" class="oe_follower oe_notfollow">
11                 <span class="oe_follow">Follow</span>
12                 <span class="oe_unfollow">Unfollow</span>
13                 <span class="oe_following">Following</span>
14             </button>
15             <t t-if="widget.comment">
16                 <h5 class="oe_comment"><t t-raw="widget.comment"/></h5>
17             </t>
18             <div class="oe_subtype_list"></div>
19         </div>
20         <div class='oe_follower_title_box'>
21             <h4 class='oe_follower_title'>Followers</h4>
22             <a t-if="widget.view_is_editable" href='#' class="oe_invite">Add others</a>
23         </div>
24         <div class="oe_follower_list"></div>
25     </div>
26
27     <!--
28         followers.partner template
29         Template used to display a partner following the record
30         -->
31     <div t-name="mail.followers.partner" class='oe_partner'>
32         <img class="oe_mail_thumbnail oe_mail_frame" t-attf-src="{record.avatar_url}"/>
33         <a t-attf-href="#model=res.partner&amp;id=#{record.id}" t-att-title="record.name" t-att-data-partner="record.id"><t t-esc="record.name"/></a>
34         <span t-if="record.is_editable and (widget.records_length &gt; 1)" class="oe_edit_subtype oe_e oe_hidden" title="Edit subscription" t-att-data-id="record.id">&amp;</span>
35         <span t-if="widget.view_is_editable" class="oe_remove_follower oe_e" title="Remove this follower" t-att-data-id="record.id">X</span>
36     </div>
37     
38     <!--
39         followers.subtype template
40         Template used to display message subtypes of a follower subscription
41     -->
42     <t t-name="mail.followers.subtype">
43         <table class='oe_subtype'>
44             <tr>
45                 <td width="10%"><input type="checkbox" t-att-checked="record.followed" t-att-id="'input_mail_followers_subtype_'+record.id" t-att-data-id="record.id" t-att-name="record.name"  class="oe_msg_subtype_check"/></td>
46                 <td><label t-att-for="'input_mail_followers_subtype_'+record.id"><t t-esc="record.name"/></label></td>
47             </tr>
48         </table>
49     </t>
50
51     <t t-name="mail.followers.show_more">
52         <div class="oe_partner oe_show_more">And <t t-esc="number"/> more.</div>
53     </t>
54
55 </template>