[IMP] mail: add list of recipients on bottom of messages if there are more of one...
authorChristophe Matthieu <chm@openerp.com>
Fri, 30 Nov 2012 15:15:50 +0000 (16:15 +0100)
committerChristophe Matthieu <chm@openerp.com>
Fri, 30 Nov 2012 15:15:50 +0000 (16:15 +0100)
bzr revid: chm@openerp.com-20121130151550-b6ytzlyl5fhgs48w

addons/mail/static/src/css/mail.css
addons/mail/static/src/xml/mail.xml

index 638d016..8b0ae5f 100644 (file)
     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 ------------------ */
 
index cca908a..77c478c 100644 (file)
                     <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="'&quot;' + widget.record_name + '&quot;'"/>
+                                    <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&amp;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">&lt;&lt;&lt;</a>
+                            </t>
+                        </div>
+                    </t>
                 </div>
             </div>
         </div>