summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml/thread.xml
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2015-11-06 10:05:25 +0100
committerGéry Debongnie <ged@odoo.com>2015-11-09 16:36:52 +0100
commit622bd038e4123f6006a2c6f9e44fc4bdfc436231 (patch)
tree60709a2e8b58c3a49396aee2969719e9644b6b76 /addons/mail/static/src/xml/thread.xml
parent2bb55ecb041ebdc1074cbf6e138ad24df1fe0581 (diff)
[FIX] mail: various ui improvements
- display star/mark as read icon next to the message title instead on the far right - display unstar all message in channel starred - enable/disable the 'unstar all' and 'mark read' buttons depending on the number of messages in the corresponding channels - display star on the left sidebar in 'squashed messages' - tweaks to padding in client action - display hash in channel name in lighter tone - light opacity in sidebar - star icon in message sidebar is clickable + small less refactoring - message sidebar is aligned with the message now - messages are not squashed in inbox/starred
Diffstat (limited to 'addons/mail/static/src/xml/thread.xml')
-rw-r--r--addons/mail/static/src/xml/thread.xml19
1 files changed, 11 insertions, 8 deletions
diff --git a/addons/mail/static/src/xml/thread.xml b/addons/mail/static/src/xml/thread.xml
index d10318c5a17..94719437441 100644
--- a/addons/mail/static/src/xml/thread.xml
+++ b/addons/mail/static/src/xml/thread.xml
@@ -48,16 +48,11 @@
<span t-if="!message.display_author" t-att-title="moment(message.date, 'YYYY-MM-DD hh:mm:ss').format('LLL')" class="o_thread_message_side_date">
<t t-esc="moment(message.date, 'YYYY-MM-DD hh:mm:ss').format('hh:mm')"/>
</span>
+ <i t-if="!message.display_author &amp;&amp; options.display_stars &amp;&amp; message.message_type != 'notification'"
+ t-att-class="'fa o_thread_message_star ' + (message.is_starred ? 'fa-star' : 'fa-star-o')"
+ t-att-data-message-id="message.id" t-att-title="_t('Mark as Todo')"/>
</div>
<div class="o_thread_message_core">
- <span class="pull-right">
- <i t-if="message.is_needaction &amp;&amp; options.display_needactions"
- class="fa fa-check o_thread_message_needaction"
- t-att-data-message-id="message.id" t-att-title="_t('Mark as Done')"/>
- <i t-if="options.display_stars &amp;&amp; message.message_type != 'notification'"
- t-att-class="'fa fa-lg o_thread_message_star ' + (message.is_starred ? 'fa-star' : 'fa-star-o')"
- t-att-data-message-id="message.id" t-att-title="_t('Mark as Todo')"/>
- </span>
<p t-if="message.display_author" class="o_mail_info">
<t t-if="message.is_note">
Note by
@@ -86,6 +81,14 @@
<t t-if="message.origin_id &amp;&amp; (message.origin_id !== options.channel_id)">
(from <a class="o_channel_redirect" t-att-data-oe-id="message.origin_id" href="#"><t t-esc="message.origin_name"/>)</a>
</t>
+ <span>
+ <i t-if="options.display_stars &amp;&amp; message.message_type != 'notification'"
+ t-att-class="'fa fa-lg o_thread_message_star ' + (message.is_starred ? 'fa-star' : 'fa-star-o')"
+ t-att-data-message-id="message.id" t-att-title="_t('Mark as Todo')"/>
+ <i t-if="message.is_needaction &amp;&amp; options.display_needactions"
+ class="fa fa-check o_thread_message_needaction"
+ t-att-data-message-id="message.id" t-att-title="_t('Mark as Done')"/>
+ </span>
</p>
<t t-if="message.tracking_value_ids &amp;&amp; message.tracking_value_ids.length &gt; 0">
<t t-call="mail.ChatThread.MessageTracking"/>