summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/mail/static/src/xml')
-rw-r--r--addons/mail/static/src/xml/mail.xml25
-rw-r--r--addons/mail/static/src/xml/mail_followers.xml31
2 files changed, 35 insertions, 21 deletions
diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml
index bf29ada9f63..00c7cd1d3c6 100644
--- a/addons/mail/static/src/xml/mail.xml
+++ b/addons/mail/static/src/xml/mail.xml
@@ -16,7 +16,10 @@
<tr class="oe_header_row oe_header_row_top">
<td colspan="2">
<h2 class="oe_view_title">
- <span class="oe_view_title_text">All Feeds</span>
+ <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>
</h2>
</td>
<td><div class="oe_view_manager_view_search" t-opentag="true"/></td>
@@ -58,29 +61,9 @@
<div class="oe_mail_recthread_main">
<!-- contains the document thread -->
</div>
- <div class="oe_mail_recthread_aside">
- <div class="oe_mail_recthread_actions">
- <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>
- <button type="button" class="oe_mail_button_followers">Show followers</button>
- </div>
- <div class="oe_mail_recthread_followers">
- <h4>Followers</h4>
- <ul class="oe_mail_followers_display"></ul>
- </div>
- </div>
</div>
<!--
- record_thread.subscriber template
- Template used to display a subscriber.
- -->
- <li t-name="mail.record_thread.subscriber">
- <img class="oe_mail_thumbnail oe_mail_frame" t-attf-src="{record.avatar_url}"/>
- <a t-attf-href="#model=res.users&amp;id=#{record.id}"><t t-raw="record.name"/></a>
- </li>
-
- <!--
mail.compose_message template
This template holds the composition form to write a note or send
an e-mail. It contains by default a textarea, that will be replaced
diff --git a/addons/mail/static/src/xml/mail_followers.xml b/addons/mail/static/src/xml/mail_followers.xml
new file mode 100644
index 00000000000..53c899b9569
--- /dev/null
+++ b/addons/mail/static/src/xml/mail_followers.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<template>
+
+ <!--
+ followers main template
+ Template used to display the followers and the actions in a record.
+ -->
+ <div t-name="mail.followers" class="oe_mail_recthread_aside">
+ <div class="oe_mail_recthread_actions">
+ <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>
+ <button type="button" class="oe_mail_button_followers">Show followers</button>
+ </div>
+ <div class="oe_mail_recthread_followers">
+ <t t-if="widget.params.title">
+ <h4><t t-raw="widget.params.title"/></h4>
+ </t>
+ <ul class="oe_mail_followers_display"></ul>
+ </div>
+ </div>
+
+ <!--
+ followers.partner template
+ Template used to display a partner following the record
+ -->
+ <li t-name="mail.followers.partner">
+ <img class="oe_mail_thumbnail oe_mail_frame" t-attf-src="{record.avatar_url}"/>
+ <a t-attf-href="#model=res.users&amp;id=#{record.id}"><t t-raw="record.name"/></a>
+ </li>
+
+</template>