50e73f103260a67e9b66f30eeee7cad563eba6ed
[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="ThreadView" class="oe_mail_main">
5         <div class="separator horizontal">OpenSocial</div>
6         <div class="oe_mail_main_left">
7             <div class="oe_mail_actions">
8                 <button type="button" class="oe_mail_button_follow">Follow</button>
9                 <button type="button" class="oe_mail_button_unfollow">Unfollow</button>
10             </div>
11             <div class="oe_mail_post_comment">
12                 <textarea class="oe_mail_action_textarea" onfocus="this.value='';">Enter your comment here...</textarea><br />
13                 <button type="button" class="oe_mail_button_comment">Post comment</button>
14             </div>
15             <div class="oe_mail_msg">
16                 <div class="oe_mail_comment">
17                 </div>
18             </div>
19         </div>
20         <div class="oe_mail_main_right">
21             <div class="oe_mail_followers_actions">
22                 <button type="button" class="oe_mail_button_followers">See followers</button>
23             </div>
24             <div class="oe_mail_followers">
25             </div>
26         </div>
27     </div>
28     
29     <t t-name="ThreadMsgView">
30         <div class="oe_mail_msg_image">Image</div>
31         <div class="oe_mail_msg_content">
32             <p class="oe_mail_msg_p">
33                 <t t-if="record.type == 'notification'">
34                     <span class="oe_mail_msg_author">OpenERP System Notification</span>
35                 </t>
36                 <t t-if="record.type == 'comment'">
37                     <span class="oe_mail_msg_author"><a href="#"><t t-raw="record.user_id[1]"/></a></span>
38                 </t>
39                 <t t-if="record.type == 'email'">
40                     <span class="oe_mail_msg_author"><t t-raw="record.user_id[1]"/></span>
41                 </t>
42                 <t t-if="record.need_action_user_id != false">- <span class="oe_mail_msg_need_action">Need action by <a href="#"><t t-raw="record.need_action_user_id[1]"/></a></span></t>
43                 <br />
44                 <span class="oe_mail_msg_body"><t t-raw="record.body_text"/></span><br />
45                 <span class="oe_mail_msg_date"><a href="#"><t t-raw="record.date"/></a></span>
46            </p>
47         </div>
48     </t>
49
50     <div t-name="WallView" class="oe_mail_wall">
51         <div class="oe_mail_post_comment">
52             <textarea rows="3" cols="15">Type your comment</textarea><br />
53             <button type="button" class="oe_mail_action_comment">Post comment</button>
54         </div>
55         <div class="oe_mail_comments">
56         </div>
57     </div>
58     
59 </template>