diff options
| author | Antonin Bourguignon <abo@openerp.com> | 2012-06-15 15:10:26 +0200 |
|---|---|---|
| committer | Antonin Bourguignon <abo@openerp.com> | 2012-06-15 15:10:26 +0200 |
| commit | 87d4588d4b5633a1480b09c7c2a33a858aa49e97 (patch) | |
| tree | 1a71be8d11b11e7d00f29e8e0181d931469edd2c /addons/mail/static/src/xml/mail.xml | |
| parent | 2047f3789dab5c4fafb66ac0f8381163ed1bb98b (diff) | |
[IMP] better look for mail messages
bzr revid: abo@openerp.com-20120615131026-t6af0vdg49tsqpsk
Diffstat (limited to 'addons/mail/static/src/xml/mail.xml')
| -rw-r--r-- | addons/mail/static/src/xml/mail.xml | 72 |
1 files changed, 66 insertions, 6 deletions
diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml index 04a373fc8a5..69012ae77ee 100644 --- a/addons/mail/static/src/xml/mail.xml +++ b/addons/mail/static/src/xml/mail.xml @@ -57,7 +57,7 @@ </div> </ul> -<!-- default layout --> + <!-- default layout --> <li t-name="mail.Thread.default" t-attf-class="oe_mail oe_mail_thread_msg"> <div t-attf-class="oe_mail_msg_#{record.type}"> @@ -131,18 +131,78 @@ </ul> </t> -<!-- blog layout --> + <!-- new layout --> - <li t-name="mail.Thread.blogs" t-attf-class="oe_mail oe_mail_thread_msg"> + <li t-name="mail.Thread.new" t-attf-class="oe_mail oe_mail_thread_msg"> <div t-attf-class="oe_mail_msg_#{record.type}"> <img t-if="record.type == 'email'" class="oe_email_icon oe_left" src="/mail/static/src/img/email_icon.png"/> <img t-if="record.type == 'notification' || record.type == 'comment'" class="oe_mail_msg_image oe_left" t-att-src="record.mini_url"/> <div class="oe_mail_msg_content"> - <t t-if="record.type == 'email'"><t t-call="EmailDisplay" /></t> - <t t-if="record.type == 'notification' || record.type == 'comment'"><t t-call="NoteDisplay" /></t> + <t t-if="record.type == 'email'"><t t-call="mail.Thread.new.EmailDisplay" /></t> + <t t-if="record.type == 'notification' || record.type == 'comment'"><t t-call="mail.Thread.new.NoteDisplay" /></t> </div> - <t t-if="record.type == 'tmp'"><t t-call="ThreadDisplay" /></t> + <t t-if="record.type == 'tmp'"><t t-call="mail.Thread.new.ThreadDisplay" /></t> </div> </li> + <t t-name="mail.Thread.new.NoteDisplay"> + <p class="oe_mail_msg"> + <t t-if="params.thread_level > 0"> + <a href="#" class="intlink oe_mail_oe_intlink" t-attf-data-res-model='{params.res_model}' t-attf-data-res-id='{params.res_id}'><t t-raw="record.record_name"/></a> + </t> + <span class="oe_mail_msg_body"><t t-raw="record.body"/></span> + <t t-if="record.tr_body"><span class="oe_mail_msg_body_short"><t t-raw="record.tr_body"/></span></t><br/> + <ul> + <t t-if="display['show_reply']"> + <li><a href="#" class="oe_mail_msg_reply oe_mail_oe_intlink">Reply</a><span class="oe_mail_oe_space oe_fade"> · </span></li> + </t> + <t t-if="display['show_delete']"> + <t t-if="thread._is_author(record.user_id[0])"> + <li><a href="#" t-attf-data-id='{record.id}' class="oe_mail_msg_delete oe_mail_oe_intlink">Delete</a><span class="oe_mail_oe_space oe_fade"> · </span></li> + </t> + </t> + <t t-if="display['show_hide']"> + <t t-if="!(thread._is_author(record.user_id[0]))"> + <li><a href="#" t-attf-data-id='{record.id}' class="oe_mail_msg_hide oe_mail_oe_intlink">Hide</a><span class="oe_mail_oe_space oe_fade"> · </span></li> + </t> + </t> + <li> + <span class="oe_fade"><t t-raw="record.date"/> + by <a href="#" class="intlink oe_mail_oe_intlink" data-res-model='res.users' t-attf-data-res-id='{record.user_id[0]}'><t t-raw="record.user_id[1]"/></a> + </span> + </li> + </ul> + </p> + </t> + + <t t-name="mail.Thread.new.EmailDisplay"> + <p class="oe_mail_msg oe_mail_msg_p_email_header"> + <t t-if="params.thread_level > 0"> + <a href="#" class="intlink oe_mail_oe_intlink" t-attf-data-res-model='{params.res_model}' t-attf-data-res-id='{params.res_id}'><t t-raw="record.record_name"/></a> + </t> + </p> + <p><span class="oe_mail_oe_bold">From:</span> <t t-esc="record.email_from"/></p> + <p><span class="oe_mail_oe_bold">Subject:</span> <t t-esc="record.subject"/></p> + <p class="oe_mail_msg"> + <span class="oe_mail_msg_body"><t t-raw="record.body"/></span> + <t t-if="record.tr_body"><span class="oe_mail_msg_body_short"><t t-raw="record.tr_body"/></span></t> + </p> + + <ul> + <t t-if="display['show_delete']"> + <t t-if="thread._is_author(record.user_id[0])"> + <li><a href="#" t-attf-data-id='{record.id}' class="oe_mail_msg_delete oe_mail_oe_intlink">Delete</a><span class="oe_mail_oe_space oe_fade"> · </span></li> + </t> + </t> + <t t-if="display['show_hide']"> + <t t-if="!(thread._is_author(record.user_id[0]))"> + <li><a href="#" t-attf-data-id='{record.id}' class="oe_mail_msg_hide oe_mail_oe_intlink">Hide</a><span class="oe_mail_oe_space oe_fade"> · </span></li> + </t> + </t> + <li> + <span class="oe_fade"><t t-raw="record.date"/></span> + </li> + </ul> + </t> + </template> |
