diff options
| author | Thibault Delavallée <tde@openerp.com> | 2012-11-02 14:54:26 +0100 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2012-11-02 14:54:26 +0100 |
| commit | fb222404e5c0b2c5d43c57dab931294ad2edd25d (patch) | |
| tree | d53e5348d0b97a8a50768f65a8ed9a518223d9f0 /addons/mail/static/src/xml/mail.xml | |
| parent | db19771e06abd2cea0ab0f52c218cfccf48220f7 (diff) | |
[IMP] mail: tried to have alwsays read/unread buttons; some code cleaning; added demo data.
bzr revid: tde@openerp.com-20121102135426-5np5wtupzdhx0dz4
Diffstat (limited to 'addons/mail/static/src/xml/mail.xml')
| -rw-r--r-- | addons/mail/static/src/xml/mail.xml | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml index 5cd4c045469..2654778d84c 100644 --- a/addons/mail/static/src/xml/mail.xml +++ b/addons/mail/static/src/xml/mail.xml @@ -1,8 +1,9 @@ <?xml version="1.0" encoding="UTF-8"?> <template> - <!-- this template contains the mail widget and is used to namespace the css --> - <t t-name="mail.Widget"> + <!-- + mail.Widget template used to namespace the css --> + <t t-name="mail.Root"> <div class="oe_mail"> </div> </t> @@ -185,7 +186,7 @@ <!-- default layout --> <t t-name="mail.thread.message"> - <div t-attf-class="oe_msg #{widget.thread_level and widget.options.display_indented_thread > -1 ? 'oe_msg_indented' : ''} oe_msg_#{widget.type} oe_msg_#{widget.to_read?'unread':'read'}"> + <div t-attf-class="oe_msg #{widget.thread_level and widget.options.display_indented_thread > -1 ? 'oe_msg_indented' : ''} oe_msg_#{widget.type}"> <div class='oe_msg_left'> <a t-attf-href="#model=res.partner&id=#{widget.author_id[0]}" t-att-title="widget.author_id[1]"> @@ -195,8 +196,8 @@ <div class="oe_msg_center"> <div class='oe_msg_icons'> - <span class='oe_read' t-if="widget.options.show_read_unread_button"><a title="Read" class="oe_e">X</a></span> - <span class='oe_unread' t-if="widget.options.show_read_unread_button"><a title="Set back to unread" class="oe_e">v</a></span> + <span class='oe_read' t-if="widget.options.show_read"><a title="Read" class="oe_e">X</a></span> + <span class='oe_unread' t-if="widget.options.show_unread"><a title="Set back to unread" class="oe_e">v</a></span> <span class='oe_reply' t-if="widget.options.show_reply_button"><a title="Reply" class="oe_e">(</a></span> <span t-attf-class="oe_star #{widget.is_favorite?'oe_starred':''}"><a title="Add To Favorites" class="oe_e">7</a></span> </div> @@ -232,7 +233,7 @@ <!-- expandable message layout --> <t t-name="mail.thread.expandable"> - <div t-attf-class="oe_msg oe_msg_#{widget.type} #{widget.max_limit ? 'oe_max_limit' : ''} #{widget.thread_level and widget.options.display_indented_thread > -1 ? 'oe_msg_indented' : ''} oe_msg_unread"> + <div t-attf-class="oe_msg oe_msg_#{widget.type} #{widget.max_limit ? 'oe_max_limit' : ''} #{widget.thread_level and widget.options.display_indented_thread > -1 ? 'oe_msg_indented' : ''}"> <div class="oe_msg_content oe_msg_more_message"> <div class='oe_separator'></div> <a t-if="widget.nb_messages <= 0" class="oe_msg_fetch_more">show more message</a> |
