1 <?xml version="1.0" encoding="UTF-8"?>
6 Template used to display the communication history in the wall.
8 <div t-name="mail.wall" class="oe_view_manager oe_mail_wall oe_view_manager_current">
9 <table class="oe_view_manager_header">
16 <tr class="oe_header_row oe_header_row_top">
18 <h2 class="oe_view_title">
19 <span class="oe_view_title_text">
20 <t t-if="! widget.params.res_model">News Feeds</t>
21 <t t-if="widget.params.res_model" t-esc="widget.params.res_model"/>
25 <td><div class="oe_view_manager_view_search" t-opentag="true"/></td>
29 <div class="oe_mail_wall_main oe_semantic_html_override">
30 <div class="oe_mail_wall_action">
31 <!-- call the composition form -->
32 <t t-call ="mail.compose_message"/>
34 <div class="oe_clear"/>
35 <ul class="oe_mail_wall_threads">
36 <!-- contains threads -->
38 <div class="oe_mail_wall_more">
39 <button class="oe_mail_wall_button_more" type="button">See more...</button>
42 <div class="oe_mail_wall_aside">
43 <!-- contains currently nothing -->
48 wall_thread_container template for the wall
49 Each discussion thread is contained inside this template
51 <t t-name="mail.wall_thread_container">
55 record_thread main template
56 Template used to display the communication history in documents
59 <div t-name="mail.record_thread" class="oe_mail_recthread">
60 <!-- <h4>History and Comments</h4> -->
61 <div class="oe_mail_recthread_main">
62 <!-- contains the document thread -->
64 <div class="oe_mail_recthread_aside">
65 <div class="oe_mail_recthread_actions">
66 <button type="button" class="oe_mail_button_follow">Follow</button>
67 <button type="button" class="oe_mail_button_unfollow oe_mail_button_mouseout">Following</button>
68 <button type="button" class="oe_mail_button_followers">Show followers</button>
70 <div class="oe_mail_recthread_followers">
72 <ul class="oe_mail_followers_display"></ul>
78 mail.compose_message template
79 This template holds the composition form to write a note or send
80 an e-mail. It contains by default a textarea, that will be replaced
81 by another composition form in the main wall composition form, or
82 for main thread composition form in document form view.
84 <t t-name="mail.compose_message">
86 <img class="oe_mail_icon oe_mail_frame oe_left" alt="User img"/>
87 <div class="oe_mail_msg_content">
88 <!-- contains the composition form -->
89 <!-- default content: old basic textarea -->
90 <textarea class="oe_mail_compose_textarea" placeholder="Add your comment here..." onfocus="this.value = '';"/>
92 <div class="oe_clear"/>
98 This template holds a thread of comments. It begins with an actions
99 container, holding the composition form. Then come the various
100 messages. Then comes the 'more' button.
102 <ul t-name="mail.thread" class="oe_mail oe_mail_thread oe_semantic_html_override">
103 <div class="oe_mail_thread_action">
104 <!-- contains the composition box (form + image) -->
105 <t t-call="mail.compose_message"/>
107 <div class="oe_mail_thread_display">
108 <!-- contains the threads -->
110 <div class="oe_mail_thread_more">
111 <button class="oe_mail_button_more" type="button">Load more messages</button>
115 <!-- default layout -->
116 <li t-name="mail.thread.message" class="oe_mail oe_mail_thread_msg">
117 <div t-attf-class="oe_mail_msg_#{record.type} oe_semantic_html_override">
118 <img class="oe_mail_icon oe_mail_frame oe_left" t-att-src="record.mini_url"/>
119 <div class="oe_mail_msg_content">
120 <!-- dropdown menu with message options and actions -->
121 <span class="oe_dropdown_toggle oe_dropdown_arrow">
122 <ul class="oe_dropdown_menu">
123 <t t-if="display['show_delete']">
124 <li t-if="record.is_author"><a href="#" class="oe_mail_msg_delete" t-attf-data-id='{record.id}'>Delete</a></li>
126 <li t-if="display['show_hide']"><a href="#" class="oe_mail_msg_hide" t-attf-data-id='{record.id}'>Hide</a></li>
127 <!-- Uncomment when adding subtype hiding
128 <li t-if="display['show_hide']">
129 <a href="#" class="oe_mail_msg_hide_type" t-attf-data-subtype='{record.subtype}'>Hide '<t t-esc="record.subtype"/>' for this document</a>
131 <li><a href="#" t-attf-data-msg_id="{record.id}" t-attf-data-type="{record.type}" t-attf-data-formatting="{record.content_subtype}" class="oe_mail_msg_reply_by_email">Reply by email</a></li>
132 <li t-if="record.type == 'email'"><a t-attf-href="#model=mail.message&id=#{record.id}" class="oe_mail_msg_details">Details</a></li>
135 <!-- message itself -->
136 <div class="oe_mail_msg">
137 <h1 t-if="record.subject" class="oe_mail_msg_title">
138 <t t-raw="record.subject"/>
140 <div class="oe_mail_msg_body">
142 <div class="oe_mail_msg_record_body">
143 <a t-attf-href="#model=#{params.res_model}&id=#{params.res_id}" t-if="(params.thread_level > 0) & (!record.subject)"><t t-raw="record.record_name"/></a>
144 <t t-raw="record.body"/>
147 <div class="oe_clear"/>
148 <ul class="oe_mail_msg_footer">
149 <li t-if="record.subject & params.thread_level > 0"><a t-attf-href="#model=#{params.res_model}&id=#{params.res_id}"><t t-raw="record.record_name"/></a></li>
150 <li><a t-attf-href="#model=res.users&id=#{record.user_id[0]}"><t t-raw="record.user_id[1]"/></a></li>
151 <li><span t-att-title="record.date"><t t-raw="record.timerelative"/></span></li>
152 <li t-if="display['show_reply']"><a href="#" class="oe_mail_msg_reply">Reply</a></li>
153 <!-- uncomment when merging vote
154 <li><a href="#">Like</a></li>
156 <li t-if="record.attachment_ids.length > 0">
157 <a href="#" class="oe_mail_msg_view_attachments">
158 <t t-if="record.attachment_ids.length == 1">1 Attachment</t>
159 <t t-if="record.attachment_ids.length > 1"><t t-raw="record.attachment_ids.length"/> Attachments</t>
163 <t t-if="record.attachment_ids.length > 0">
164 <div class="oe_clear"></div>
165 <ul class="oe_mail_msg_attachments">
166 <t t-foreach="record.attachments" t-as="attachment">
167 <li> <a t-att-href="attachment.url"><t t-raw="attachment.name"/></a> </li>