diff options
| author | Christophe Matthieu <chm@openerp.com> | 2012-11-30 16:15:50 +0100 |
|---|---|---|
| committer | Christophe Matthieu <chm@openerp.com> | 2012-11-30 16:15:50 +0100 |
| commit | d3a0fe5044f3bf5b4becccebc9826fcb8b0cc917 (patch) | |
| tree | 257207541192610bcdc612a4479aefb97129f7a2 /addons/mail/static/src | |
| parent | 9d57b962730798009ca31eec8866c37888711a78 (diff) | |
[IMP] mail: add list of recipients on bottom of messages if there are more of one partner not follower who receive the message
bzr revid: chm@openerp.com-20121130151550-b6ytzlyl5fhgs48w
Diffstat (limited to 'addons/mail/static/src')
| -rw-r--r-- | addons/mail/static/src/css/mail.css | 5 | ||||
| -rw-r--r-- | addons/mail/static/src/xml/mail.xml | 24 |
2 files changed, 28 insertions, 1 deletions
diff --git a/addons/mail/static/src/css/mail.css b/addons/mail/static/src/css/mail.css index 638d016921b..8b0ae5f2cb0 100644 --- a/addons/mail/static/src/css/mail.css +++ b/addons/mail/static/src/css/mail.css @@ -440,11 +440,14 @@ filter:none; cursor: pointer; } -.openerp .oe_mail .oe_mail_list_recipients{ +.openerp .oe_mail .oe_msg_content .oe_mail_list_recipients{ font-size: 12px; margin-top: 4px; margin-bottom: 4px; } +.openerp .oe_mail .oe_msg_footer .oe_mail_list_recipients{ + font-style: italic; +} /* ---------------- HIDDEN MESSAGES ------------------ */ diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml index cca908a5d98..77c478c1bf0 100644 --- a/addons/mail/static/src/xml/mail.xml +++ b/addons/mail/static/src/xml/mail.xml @@ -232,6 +232,30 @@ <span t-att-title="widget.date"><t t-raw="widget.timerelative"/></span> <span class='oe_subtle'>•</span> <t t-call="mail.thread.message.vote"/> + <t t-if="widget.partner_ids.length"> + <div class="oe_mail_list_recipients"> + Send to: + <t t-if="!widget.is_private"> + <span class="oe_all_follower"> + Followers of + <t t-if="widget.record_name" t-raw="'"' + widget.record_name + '"'"/> + <t t-if="!widget.record_name">this document</t> + </span> + </t> + <t t-if="!widget.is_private and widget.partner_ids.length"> and </t> + <t t-set="inc" t-value="0"/> + <t t-if="widget.partner_ids.length" t-foreach="widget.partner_ids" t-as="partner"> + <span t-attf-class="oe_partner_follower #{inc>=3?'oe_hidden':''}"><t t-if="inc" t-raw="', '"/> + <a t-if="widget.options.show_link_partner" t-attf-href="#model=res.partner&id=#{partner[0]}"><t t-raw="partner[1]"/></a> + <t t-if="!widget.options.show_link_partner" t-raw="partner[1]"/> + </span><t t-set="inc" t-value="inc+1"/> + </t> + <t t-if="widget.partner_ids.length>=3"> + <span class="oe_more">, <a><t t-raw="widget.partner_ids.length-3"/> others...</a></span> + <a class="oe_more_hidden"><<<</a> + </t> + </div> + </t> </div> </div> </div> |
