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-03 12:20:20 +00:00
|
|
|
<div t-name="mail.wall" class="oe_view_manager oe_mail_wall oe_view_manager_global">
|
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-05-11 10:37:17 +00:00
|
|
|
<tr class="oe_header_row">
|
2012-06-27 15:44:54 +00:00
|
|
|
<td colspan="2">
|
|
|
|
<h2 class="oe_view_title">
|
|
|
|
<span class="oe_view_title_text">All Feeds</span>
|
|
|
|
</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-03-02 17:07:49 +00:00
|
|
|
<button class="oe_mail_wall_button_more" type="button">See more discussions</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-04-13 11:41:26 +00:00
|
|
|
<button type="button" class="oe_mail_button_follow oe_mail_button_mouseout">Not following</button>
|
|
|
|
<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-19 13:13:39 +00:00
|
|
|
<!--
|
2012-07-04 12:10:12 +00:00
|
|
|
record_thread.subscriber template
|
|
|
|
Template used to display a subscriber.
|
2012-06-19 13:13:39 +00:00
|
|
|
-->
|
|
|
|
<li t-name="mail.record_thread.subscriber">
|
2012-07-04 12:10:12 +00:00
|
|
|
<img class="oe_mail_thumbnail oe_mail_frame" t-attf-src="{record.avatar_url}"/>
|
|
|
|
<a t-attf-href="#model=res.users&id=#{record.id}"><t t-raw="record.name"/></a>
|
2012-06-19 13:13:39 +00:00
|
|
|
</li>
|
|
|
|
|
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-07-04 12:10:12 +00:00
|
|
|
<img class="oe_mail_icon 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-06-21 15:24:28 +00:00
|
|
|
<!--
|
2012-07-03 12:20:20 +00:00
|
|
|
<t t-if="thread._is_author(record.user_id[0])">
|
2012-06-21 15:24:28 +00:00
|
|
|
-->
|
2012-07-03 12:20:20 +00:00
|
|
|
<li><a href="#" class="oe_mail_msg_delete" t-attf-data-id='{record.id}'>Delete</a></li>
|
2012-06-21 15:24:28 +00:00
|
|
|
<!--
|
2012-07-03 12:20:20 +00:00
|
|
|
</t>
|
2012-06-21 15:24:28 +00:00
|
|
|
-->
|
2012-06-21 21:55:27 +00:00
|
|
|
</t>
|
2012-07-03 12:20:20 +00:00
|
|
|
<t t-if="display['show_hide']">
|
|
|
|
<li><a href="#" class="oe_mail_msg_hide" t-attf-data-id='{record.id}'>Remove from Wall</a></li>
|
|
|
|
<li><a href="#" class="oe_mail_msg_hide_type" t-attf-data-subtype='{record.subtype}'>Hide '<t t-esc="record.subtype"/>' for this document</a></li>
|
2012-06-21 21:55:27 +00:00
|
|
|
</t>
|
2012-07-10 13:05:39 +00:00
|
|
|
<li t-if="record.type == 'email'"><a href="#" t-attf-data-msg_id="{record.id}" class="oe_mail_msg_reply_by_email">Repzefly</a></li>
|
2012-06-22 01:21:02 +00:00
|
|
|
<li t-if="record.type == 'email'"><a href="#" 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 t-if="params.thread_level > 0" class="oe_mail_msg_subtitle">
|
2012-07-10 13:05:39 +00:00
|
|
|
<a t-attf-href="#model=#{params.res_model}&id=#{params.res_id}"><t t-raw="record.record_name"/></a>
|
2012-06-22 01:21:02 +00:00
|
|
|
</div>
|
|
|
|
<div class="oe_mail_msg_body">
|
2012-07-10 13:05:39 +00:00
|
|
|
<a t-attf-href="#model=res.users&id=#{record.user_id[0]}"><t t-raw="record.user_id[1]"/></a>
|
|
|
|
<div class="oe_mail_msg_record_body"><t t-raw="record.body"/></div>
|
2012-06-22 01:21:02 +00:00
|
|
|
</div>
|
2012-06-21 21:55:27 +00:00
|
|
|
<ul class="oe_mail_msg_footer">
|
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">
|
|
|
|
<t t-if="record.attachment_ids.length == 1">Attachment</t>
|
|
|
|
<t t-if="record.attachment_ids.length > 1">Attachments (<t t-raw="record.attachment_ids.length"/>)</t>
|
|
|
|
</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>
|