2012-02-02 14:18:43 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<template >
2012-02-23 16:32:36 +00:00
2012-06-15 08:36:56 +00:00
<!--
wall main template
2012-07-03 12:20:20 +00:00
Template used to display the communication history in the wall.
2012-06-15 08:36:56 +00:00
-->
2012-07-19 14:34:02 +00:00
<div t-name= "mail.wall" class= "oe_view_manager oe_mail_wall oe_view_manager_current" >
2012-05-11 10:37:17 +00:00
<table class= "oe_view_manager_header" >
2012-06-27 15:44:54 +00:00
<colgroup >
<col width= "33%" />
<col width= "33%" />
<col width= "34%" />
</colgroup>
<tbody >
2012-07-19 14:10:19 +00:00
<tr class= "oe_header_row oe_header_row_top" >
2012-06-27 15:44:54 +00:00
<td colspan= "2" >
<h2 class= "oe_view_title" >
2012-08-14 11:22:04 +00:00
<span class= "oe_view_title_text" >
<t t-if= "! widget.params.res_model" > News Feeds</t>
<t t-if= "widget.params.res_model" t-esc= "widget.params.res_model" />
</span>
2012-06-27 15:44:54 +00:00
</h2>
</td>
2012-05-11 10:37:17 +00:00
<td > <div class= "oe_view_manager_view_search" t-opentag= "true" /> </td>
</tr>
2012-06-27 15:44:54 +00:00
</tbody>
2012-05-11 10:37:17 +00:00
</table>
2012-06-15 08:36:56 +00:00
<div class= "oe_mail_wall_main" >
2012-06-21 15:00:02 +00:00
<div class= "oe_mail_wall_action" >
2012-07-04 12:10:12 +00:00
<!-- call the composition form -->
<t t-call = "mail.compose_message" />
2012-02-10 10:52:23 +00:00
</div>
2012-06-15 08:36:56 +00:00
<div class= "oe_clear" />
2012-06-21 12:48:43 +00:00
<ul class= "oe_mail_wall_threads" >
2012-06-15 08:36:56 +00:00
<!-- contains threads -->
2012-06-21 12:48:43 +00:00
</ul>
2012-02-28 11:07:40 +00:00
<div class= "oe_mail_wall_more" >
2012-07-30 07:52:10 +00:00
<button class= "oe_mail_wall_button_more" type= "button" > See more...</button>
2012-02-29 14:23:31 +00:00
</div>
2012-02-23 16:32:36 +00:00
</div>
2012-06-15 08:36:56 +00:00
<div class= "oe_mail_wall_aside" >
<!-- contains currently nothing -->
</div>
2012-02-23 16:32:36 +00:00
</div>
2012-06-15 08:36:56 +00:00
<!--
2012-07-03 12:20:20 +00:00
wall_thread_container template for the wall
Each discussion thread is contained inside this template
2012-06-15 08:36:56 +00:00
-->
2012-07-03 12:20:20 +00:00
<t t-name= "mail.wall_thread_container" >
2012-02-23 16:32:36 +00:00
</t>
2012-06-15 08:36:56 +00:00
<!--
record_thread main template
2012-07-04 12:10:12 +00:00
Template used to display the communication history in documents
2012-06-15 08:36:56 +00:00
form view.
-->
<div t-name= "mail.record_thread" class= "oe_mail_recthread" >
2012-07-03 12:20:20 +00:00
<!-- <h4>History and Comments</h4> -->
2012-06-15 08:36:56 +00:00
<div class= "oe_mail_recthread_main" >
<!-- contains the document thread -->
2012-02-23 16:32:36 +00:00
</div>
2012-06-15 08:36:56 +00:00
<div class= "oe_mail_recthread_aside" >
2012-03-21 14:07:26 +00:00
<div class= "oe_mail_recthread_actions" >
2012-08-10 12:47:54 +00:00
<button type= "button" class= "oe_mail_button_follow" > Follow</button>
2012-04-13 11:41:26 +00:00
<button type= "button" class= "oe_mail_button_unfollow oe_mail_button_mouseout" > Following</button>
2012-06-19 13:13:39 +00:00
<button type= "button" class= "oe_mail_button_followers" > Show followers</button>
2012-02-22 14:48:35 +00:00
</div>
2012-03-21 14:07:26 +00:00
<div class= "oe_mail_recthread_followers" >
2012-03-08 16:41:38 +00:00
<h4 > Followers</h4>
2012-06-07 17:53:28 +00:00
<ul class= "oe_mail_followers_display" > </ul>
2012-02-10 12:43:48 +00:00
</div>
2012-02-08 15:25:21 +00:00
</div>
2012-02-06 09:06:18 +00:00
</div>
2012-02-22 14:04:03 +00:00
2012-06-15 08:36:56 +00:00
<!--
2012-07-04 12:10:12 +00:00
mail.compose_message template
2012-06-15 08:36:56 +00:00
This template holds the composition form to write a note or send
2012-07-04 12:10:12 +00:00
an e-mail. It contains by default a textarea, that will be replaced
by another composition form in the main wall composition form, or
for main thread composition form in document form view.
2012-06-15 08:36:56 +00:00
-->
2012-06-14 08:40:33 +00:00
<t t-name= "mail.compose_message" >
2012-06-18 15:06:08 +00:00
<div >
2012-07-04 12:10:12 +00:00
<img class= "oe_mail_icon oe_mail_frame oe_left" alt= "User img" />
2012-06-18 15:06:08 +00:00
<div class= "oe_mail_msg_content" >
<!-- contains the composition form -->
2012-07-04 12:10:12 +00:00
<!-- default content: old basic textarea -->
<textarea class= "oe_mail_compose_textarea" placeholder= "Add your comment here..." onfocus= "this.value = '';" />
2012-06-18 15:06:08 +00:00
</div>
<div class= "oe_clear" />
2012-06-14 08:40:33 +00:00
</div>
</t>
2012-07-04 12:10:12 +00:00
<!--
thread template
This template holds a thread of comments. It begins with an actions
container, holding the composition form. Then come the various
messages. Then comes the 'more' button.
-->
2012-07-03 12:20:20 +00:00
<ul t-name= "mail.thread" class= "oe_mail oe_mail_thread" >
2012-07-04 12:10:12 +00:00
<div class= "oe_mail_thread_action" >
<!-- contains the composition box (form + image) -->
<t t-call= "mail.compose_message" />
2012-06-21 15:24:28 +00:00
</div>
<div class= "oe_mail_thread_display" >
<!-- contains the threads -->
</div>
2012-02-27 16:04:42 +00:00
<div class= "oe_mail_thread_more" >
2012-03-02 17:07:49 +00:00
<button class= "oe_mail_button_more" type= "button" > Load more messages</button>
2012-02-27 16:04:42 +00:00
</div>
2012-03-21 14:07:26 +00:00
</ul>
2012-02-22 14:04:03 +00:00
2012-06-15 13:10:26 +00:00
<!-- default layout -->
2012-07-04 12:10:12 +00:00
<li t-name= "mail.thread.message" class= "oe_mail oe_mail_thread_msg" >
2012-04-13 12:25:30 +00:00
<div t-attf-class= "oe_mail_msg_#{record.type}" >
2012-08-09 17:03:33 +00:00
<img class= "oe_mail_icon oe_mail_frame oe_left" t-att-src= "record.mini_url" />
2012-04-05 21:42:41 +00:00
<div class= "oe_mail_msg_content" >
2012-07-04 12:10:12 +00:00
<!-- dropdown menu with message options and actions -->
2012-06-21 21:55:27 +00:00
<span class= "oe_dropdown_toggle oe_dropdown_arrow" >
<ul class= "oe_dropdown_menu" >
2012-07-03 12:20:20 +00:00
<t t-if= "display['show_delete']" >
2012-07-11 09:38:48 +00:00
<li t-if= "record.is_author" > <a href= "#" class= "oe_mail_msg_delete" t-attf-data-id= '{record.id}' > Delete</a> </li>
2012-06-21 21:55:27 +00:00
</t>
2012-07-30 07:52:10 +00:00
<li t-if= "display['show_hide']" > <a href= "#" class= "oe_mail_msg_hide" t-attf-data-id= '{record.id}' > Hide</a> </li>
2012-07-17 11:02:51 +00:00
<!-- Uncomment when adding subtype hiding
2012-07-11 09:38:48 +00:00
<li t-if= "display['show_hide']" >
<a href= "#" class= "oe_mail_msg_hide_type" t-attf-data-subtype= '{record.subtype}' > Hide '<t t-esc= "record.subtype" /> ' for this document</a>
2012-07-17 11:02:51 +00:00
</li> -->
2012-07-12 14:18:57 +00:00
<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>
2012-07-11 12:37:13 +00:00
<li t-if= "record.type == 'email'" > <a t-attf-href= "#model=mail.message&id=#{record.id}" class= "oe_mail_msg_details" > Details</a> </li>
2012-06-21 21:55:27 +00:00
</ul>
2012-06-11 10:22:54 +00:00
</span>
2012-07-04 12:10:12 +00:00
<!-- message itself -->
2012-06-21 21:55:27 +00:00
<div class= "oe_mail_msg" >
2012-07-04 12:10:12 +00:00
<h1 t-if= "record.subject" class= "oe_mail_msg_title" >
2012-06-22 01:21:02 +00:00
<t t-raw= "record.subject" />
</h1>
<div class= "oe_mail_msg_body" >
2012-07-30 07:52:10 +00:00
<div class= "oe_mail_msg_record_body" >
<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>
<t t-raw= "record.body" />
</div>
2012-06-22 01:21:02 +00:00
</div>
2012-07-20 13:01:27 +00:00
<div class= "oe_clear" />
2012-06-21 21:55:27 +00:00
<ul class= "oe_mail_msg_footer" >
2012-07-30 07:52:10 +00:00
<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>
<li > <a t-attf-href= "#model=res.users&id=#{record.user_id[0]}" > <t t-raw= "record.user_id[1]" /> </a> </li>
2012-06-22 01:21:02 +00:00
<li > <span t-att-title= "record.date" > <t t-raw= "record.timerelative" /> </span> </li>
<li t-if= "display['show_reply']" > <a href= "#" class= "oe_mail_msg_reply" > Reply</a> </li>
<!-- uncomment when merging vote
2012-06-21 21:55:27 +00:00
<li > <a href= "#" > Like</a> </li>
2012-06-22 01:21:02 +00:00
-->
<li t-if= "record.attachment_ids.length > 0" >
<a href= "#" class= "oe_mail_msg_view_attachments" >
2012-07-30 07:52:10 +00:00
<t t-if= "record.attachment_ids.length == 1" > 1 Attachment</t>
<t t-if= "record.attachment_ids.length > 1" > <t t-raw= "record.attachment_ids.length" /> Attachments</t>
2012-06-22 01:21:02 +00:00
</a>
</li>
2012-06-21 21:55:27 +00:00
</ul>
<t t-if= "record.attachment_ids.length > 0" >
<div class= "oe_clear" > </div>
<ul class= "oe_mail_msg_attachments" >
<t t-foreach= "record.attachments" t-as= "attachment" >
<li > <a t-att-href= "attachment.url" > <t t-raw= "attachment.name" /> </a> </li>
</t>
</ul>
2012-06-19 18:28:10 +00:00
</t>
2012-06-21 21:55:27 +00:00
</div>
</div>
2012-06-15 17:26:47 +00:00
</div>
2012-07-04 12:10:12 +00:00
</li>
2012-05-10 12:10:58 +00:00
2012-02-16 16:03:02 +00:00
</template>