summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml/thread.xml
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2015-11-18 12:52:17 +0100
committerThibault Delavallée <tde@openerp.com>2015-11-18 13:48:27 +0100
commit2e583eb7c92fcbdac3827ba25496324238f2aee5 (patch)
tree064f729fd265a2ae8ae2eda0ad5b29c2218ea6e0 /addons/mail/static/src/xml/thread.xml
parente01e24aa9c4433772751a84f0e57eb1ffcdf1507 (diff)
[FIX] mail: chatter: re-re-add the read more / less
The read more / read less in chatter has been removed in the new timeline and then cleaned timeline introduced at cc6d2aa995ab13645627eae49ae462fbf2b038e8. This feature has been brought back at revision 486aab5098fd757dfad06e63b9f3bde51a78cb0e. However a new cleaning removed the feature at revision 2a5f07e0b919d4209c2cb72c6dfdc8b86cd5c7ff. This commit brings back this feature for the second time. Next one brings free cookies.
Diffstat (limited to 'addons/mail/static/src/xml/thread.xml')
-rw-r--r--addons/mail/static/src/xml/thread.xml13
1 files changed, 12 insertions, 1 deletions
diff --git a/addons/mail/static/src/xml/thread.xml b/addons/mail/static/src/xml/thread.xml
index 62f692a9901..394627940cb 100644
--- a/addons/mail/static/src/xml/thread.xml
+++ b/addons/mail/static/src/xml/thread.xml
@@ -109,7 +109,18 @@
</t>
<p t-if="message.subject" class="o_mail_subject">Subject: <t t-esc="message.subject"/></p>
<t t-if="!(message.tracking_value_ids &amp;&amp; message.tracking_value_ids.length &gt; 0)">
- <t t-raw="message.body"/>
+ <t t-if="message.body_short">
+ <div class="o_mail_body_short">
+ <t t-raw="message.body_short"/>
+ </div>
+ <div class="o_mail_body_long">
+ <t t-raw="message.body"/>
+ <span class="oe_mail_expand"><a href="#">... read less</a></span>
+ </div>
+ </t>
+ <t t-if="! message.body_short">
+ <t t-raw="message.body"/>
+ </t>
</t>
<t t-foreach="message.attachment_ids" t-as="attachment">
<t t-call="mail.Attachment"/>