[MERGE] latest trunk
[odoo/odoo.git] / addons / mail / static / src / xml / mail.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <template>
3
4     <div t-name="mail.Wall" class="oe_mail_wall">
5         <table class="oe_view_manager_header">
6             <tr class="oe_header_row">
7                 <td><h2 class="oe_view_title">All Feeds</h2></td>
8                 <td><div class="oe_view_manager_view_search" t-opentag="true"/></td>
9             </tr>
10         </table>
11         <div class="oe_mail_wall_main">
12             <div class="oe_mail_wall_action">
13                 <img class="oe_mail_msg_image oe_left" alt="User img"/>
14                 <textarea class="oe_mail oe_mail_wall_action_textarea" placeholder="What are you working on?"/>
15                 <button class="oe_right oe_mail_wall_button_comment" type="button">Post comment</button>
16             </div>
17             <div class="oe_clear"></div>
18             <ul class="oe_mail_wall_threads">
19             </ul>
20             <div class="oe_mail_wall_more">
21                 <button class="oe_mail_wall_button_more" type="button">See more discussions</button>
22             </div>
23         </div>
24         <div class="oe_mail_wall_aside"></div>
25     </div>
26
27     <t t-name="mail.WallThreadContainer">
28     </t>
29
30     <div t-name="mail.RecordThread" class="oe_mail_recthread">
31         <div class="oe_mail_recthread_left"></div>
32         <div class="oe_mail_recthread_right">
33             <div class="oe_mail_recthread_actions">
34                 <button type="button" class="oe_mail_button_follow oe_mail_button_mouseout">Not following</button>
35                 <button type="button" class="oe_mail_button_unfollow oe_mail_button_mouseout">Following</button>
36                 <button type="button" class="oe_mail_button_followers">Display followers</button>
37             </div>
38             <div class="oe_mail_recthread_followers">
39                 <h4>Followers</h4>
40                 <ul class="oe_mail_followers_display"></ul>
41             </div>
42         </div>
43     </div>
44
45     <div t-name="mail.Thread" class="oe_mail oe_mail_thread">
46         <div class="oe_mail_thread_action">
47             <img class="oe_mail_msg_image oe_left" alt="User img"/>
48             <div class="oe_mail_msg_content">
49                 <textarea class="oe_mail oe_mail_action_textarea" placeholder="Add your comment here..." onfocus="this.value = '';"/>
50             </div>
51         </div>
52         <div class="oe_mail_thread_display"></div>
53         <div class="oe_mail_thread_more">
54             <button class="oe_mail_button_more" type="button">Load more messages</button>
55         </div>
56     </div>
57
58     <!-- default layout -->
59     <div t-name="mail.Thread.message" class="oe_mail oe_mail_thread_msg">
60         <div t-attf-class="oe_mail_msg_#{record.type}">
61             <img class="oe_email_icon oe_left" t-att-src="record.mini_url"/>
62             <div class="oe_mail_msg_content">
63                 <span class="oe_dropdown_toggle oe_dropdown_arrow">
64                     <ul class="oe_dropdown_menu">
65                         <t t-if="thread._is_author(record.user_id[0]) &amp;&amp; display['show_delete']">
66                             <li><a href="#" t-attf-data-id='{record.id}' class="oe_mail_msg_delete">Delete</a></li>
67                         </t>
68                         <t t-if="!thread._is_author(record.user_id[0]) &amp;&amp; display['show_hide']">
69                             <li><a href="#" t-attf-data-id='{record.id}' class="oe_mail_msg_hide">Hide</a></li>
70                         </t>
71                         <li t-if="record.type == 'email'"><a href="#" class="oe_mail_msg_details">Details</a></li>
72                     </ul>
73                 </span>
74                 <div class="oe_mail_msg">
75                     <h1 t-if="record.subject &amp;&amp; record.subject != 'Reply'" class="oe_mail_msg_title">
76                         <t t-raw="record.subject"/>
77                     </h1>
78                     <div t-if="params.thread_level > 0" class="oe_mail_msg_subtitle">
79                         <a href="#" t-attf-data-res-model='{params.res_model}' t-attf-data-res-id='{params.res_id}' class="oe_mail_internal_link"><t t-raw="record.record_name"/></a>
80                     </div>
81                     <div class="oe_mail_msg_body">
82                         <a href="#" data-res-model='res.users' t-attf-data-res-id='{record.user_id[0]}' class="oe_mail_internal_link"><t t-raw="record.user_id[1]"/></a>
83                         <t t-raw="record.body_head"/>
84                         <t t-if="record.body_tail"><a href="#" class="oe_mail_msg_more">... See more</a>
85                             <span class="oe_mail_msg_tail"><t t-raw="record.body_tail"/></span>
86                         </t>
87                     </div>
88                     <ul class="oe_mail_msg_footer">
89                       <li><span t-att-title="record.date"><t t-raw="record.timerelative"/></span></li>
90                       <li t-if="display['show_reply']"><a href="#" class="oe_mail_msg_reply">Reply</a></li>
91                       <!-- uncomment when merging vote
92                       <li><a href="#">Like</a></li>
93                       -->
94                       <li t-if="record.attachment_ids.length > 0">
95                           <a href="#" class="oe_mail_msg_view_attachments">
96                               <t t-if="record.attachment_ids.length == 1">Attachment</t>
97                               <t t-if="record.attachment_ids.length > 1">Attachments (<t t-raw="record.attachment_ids.length"/>)</t>
98                           </a>
99                       </li>
100                     </ul>
101                     <t t-if="record.attachment_ids.length > 0">
102                         <div class="oe_clear"></div>
103                         <ul class="oe_mail_msg_attachments">
104                             <t t-foreach="record.attachments" t-as="attachment">
105                                 <li> <a t-att-href="attachment.url"><t t-raw="attachment.name"/></a> </li>
106                             </t>
107                         </ul>
108                     </t>
109                 </div>
110             </div>
111         </div>
112     </div>
113 </template>