diff options
| author | Thibault Delavallée <tde@openerp.com> | 2015-09-23 16:39:36 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2015-09-24 16:20:53 +0200 |
| commit | 486aab5098fd757dfad06e63b9f3bde51a78cb0e (patch) | |
| tree | 2c1d1ec53d672f811cc359e341d096bcd1547f81 /addons/mail/static/src/xml | |
| parent | 41fce379e40972fe223486b7d2f6c6d836e03407 (diff) | |
[FIX][BACK FROM TRASH] mail: chatter: read more / read less
Read more / less feature is back (and probably ugly). It has probably been
removed when refactoring the old chatter.
[FIX] tools: html shortening: encoding issue
Diffstat (limited to 'addons/mail/static/src/xml')
| -rw-r--r-- | addons/mail/static/src/xml/mail_thread.xml | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/addons/mail/static/src/xml/mail_thread.xml b/addons/mail/static/src/xml/mail_thread.xml index e650dd323fc..1323cb9c21e 100644 --- a/addons/mail/static/src/xml/mail_thread.xml +++ b/addons/mail/static/src/xml/mail_thread.xml @@ -141,7 +141,19 @@ </t> <!-- normal message --> <t t-if="!(message.tracking_value_ids && message.tracking_value_ids.length > 0)"> - <t t-raw="message.body"/> + <t t-if="message.body_short"> + <div class="o_mail_body_short"> + <t t-raw="message.body_short"/> + <span class="o_mail_expand"><a href="#">... read more</a></span> + </div> + <div class="o_mail_body_long"> + <t t-raw="message.body"/> + <span class="o_mail_expand"><a href="#">... read less</a></span> + </div> + </t> + <t t-if="! message.body_short"> + <t t-raw="message.body"/> + </t> </t> <!-- Attachments --> <t t-foreach="message.attachment_ids" t-as="attachment"> |
