summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml/thread.xml
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2016-03-02 13:58:47 +0100
committerThibault Delavallée <tde@openerp.com>2016-03-03 15:45:05 +0100
commita127a7aed238dd041d5f90857f38df5a9bd017f9 (patch)
tree5c1d67d026335e906ec5d78e97d28014312e698f /addons/mail/static/src/xml/thread.xml
parentba74e9ffec58011147e92212c0619019d6a28099 (diff)
[FIX] mail: only update timestamps periodically
the messages in a thread were previously rerendered every minutes to update their timestamps. This commit only update the timestamps, not all the message. This will allow us to keep expanded/folded state in messages without collapsing them every minutes. [IMP] mail: add read more/read less support client side Messages are cleaned up and tagged server sides, with a attribute data-o-mail-quote. This commit replace their content with a clickable read more link, which toggle its display.
Diffstat (limited to 'addons/mail/static/src/xml/thread.xml')
-rw-r--r--addons/mail/static/src/xml/thread.xml4
1 files changed, 1 insertions, 3 deletions
diff --git a/addons/mail/static/src/xml/thread.xml b/addons/mail/static/src/xml/thread.xml
index 3cab917d315..df1dfadb04d 100644
--- a/addons/mail/static/src/xml/thread.xml
+++ b/addons/mail/static/src/xml/thread.xml
@@ -87,9 +87,7 @@
<t t-esc="message.displayed_author"/>
</strong>
- <small t-att-title="message.date">
- - <t t-esc="message.hour"/>
- </small>
+ - <small class="o_mail_timestamp" t-att-title="message.date"><t t-esc="message.hour"/></small>
<t t-if="message.model &amp;&amp; (message.model != 'mail.channel') &amp;&amp; options.display_document_link">
on <a t-att-href="message.url" t-att-data-oe-model="message.model" t-att-data-oe-id="message.res_id"><t t-esc="message.record_name"/></a>
</t>