diff options
| author | Thibault Delavallée <tde@openerp.com> | 2013-04-23 17:36:45 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2013-04-23 17:36:45 +0200 |
| commit | 85a807a5153d357e83a0f01d4940b5c6c2582403 (patch) | |
| tree | ec4768f79fe1b1156c7d3b501c83111bebcebd8d /addons/mail/static/src/xml/mail.xml | |
| parent | 33f27b362b7de57c10782d4ddee9f4b053f06905 (diff) | |
[REF] Chatter: refactored system for read more / read less, now based on html_email_clean instead of the expander library.
bzr revid: tde@openerp.com-20130423153645-k8vcb9hiuapzf7sg
Diffstat (limited to 'addons/mail/static/src/xml/mail.xml')
| -rw-r--r-- | addons/mail/static/src/xml/mail.xml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml index 7e7d772397a..9958cb5e595 100644 --- a/addons/mail/static/src/xml/mail.xml +++ b/addons/mail/static/src/xml/mail.xml @@ -254,7 +254,13 @@ <t t-if="widget.subject" t-raw="widget.subject"/> </h1> <div class="oe_msg_body"> - <t t-raw="widget.body"/> + <t t-if="widget.body_short"> + <div class="oe_msg_body_short"><t t-raw="widget.body_short"/><span class="oe_mail_expand"><a href="#">... read more</a></span></div> + <div class="oe_msg_body_long" style="display: none;"><t t-raw="widget.body"/><span class="oe_mail_reduce"><a href="#">read less</a></span></div> + </t> + <t t-if="! widget.body_short"> + <t t-raw="widget.body"/> + </t> </div> </div> <div class="oe_msg_footer"> |
