diff options
Diffstat (limited to 'addons/mail/static/src/xml/mail.xml')
| -rw-r--r-- | addons/mail/static/src/xml/mail.xml | 79 |
1 files changed, 39 insertions, 40 deletions
diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml index 614a3b5c325..1832b235170 100644 --- a/addons/mail/static/src/xml/mail.xml +++ b/addons/mail/static/src/xml/mail.xml @@ -17,7 +17,7 @@ <t t-name="mail.compose_message"> <div class="oe_msg oe_msg_composer"> <div class="oe_msg_left"> - <img class="oe_msg_icon" alt="User img" t-attf-src="#{widget.datasets.avatar}"/> + <img class="oe_msg_icon" alt="User img" t-attf-src="#{widget.avatar}"/> </div> <div class="oe_msg_center"> <div class="oe_msg_content"> @@ -70,8 +70,8 @@ Template used to display attachments in a mail.message --> <t t-name="mail.thread.message.attachments"> - <ul t-attf-class="oe_msg_attachments #{widget.datasets.attachment_ids[0]?'':'oe_hidden'}"> - <t t-foreach="widget.datasets.attachment_ids" t-as="attachment"> + <ul t-attf-class="oe_msg_attachments #{widget.attachment_ids[0]?'':'oe_hidden'}"> + <t t-foreach="widget.attachment_ids" t-as="attachment"> <li> <span t-if="(attachment.upload or attachment.percent_loaded<100)" t-attf-title="{(attachment.name || attachment.filename) + (attachment.date?' \n('+attachment.date+')':'' )}" t-attf-name="{attachment.name || attachment.filename}"> <div class="oe_upload_in_process"> @@ -82,7 +82,7 @@ <a t-if="(!attachment.upload or attachment.percent_loaded>=100)" t-att-href="attachment.url" t-attf-title="{(attachment.name || attachment.filename) + (attachment.date?' \n('+attachment.date+')':'' )}"> <t t-raw="attachment.name || attachment.filename"/> </a> - <t t-if="widget.options.show_attachment_delete and (!attachment.upload or attachment.percent_loaded>=100)"> + <t t-if="(!attachment.upload or attachment.percent_loaded>=100)"> <a class="oe_right oe_mail_attachment_delete" title="Delete this attachment" t-attf-data-id="{attachment.id}">x</a> </t> @@ -105,13 +105,13 @@ <t t-name="mail.thread.list_recipients"> <div class="oe_mail_list_recipients"> Post to: - <span t-if="!widget.datasets.is_private" class="oe_all_follower">All Followers</span> - <t t-if="!widget.datasets.is_private and widget.datasets.partner_ids.length"> and </t> + <span t-if="!widget.is_private" class="oe_all_follower">All Followers</span> + <t t-if="!widget.is_private and widget.partner_ids.length"> and </t> <t t-set="inc" t-value="0"/> - <t t-if="widget.datasets.partner_ids.length" t-foreach="widget.datasets.partner_ids" t-as="partner"><span t-attf-class="oe_partner_follower #{inc>=3?'oe_hidden':''}"><t t-if="inc" t-raw="', '"/><a t-attf-href="#model=res.partner&id=#{partner[0]}"><t t-raw="partner[1]"/></a></span><t t-set="inc" t-value="inc+1"/> + <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-attf-href="#model=res.partner&id=#{partner[0]}"><t t-raw="partner[1]"/></a></span><t t-set="inc" t-value="inc+1"/> </t> - <t t-if="widget.datasets.partner_ids.length>=3"> - <span class="oe_more">, <a><t t-raw="widget.datasets.partner_ids.length-3"/> others...</a></span> + <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> @@ -174,9 +174,9 @@ --> <div t-name="mail.record_thread" class="oe_mail_record_wall"> <!-- <h4>History and Comments</h4> --> - <ul class="oe_mail_wall_threads"> + <div class="oe_mail_wall_threads"> <!-- contains the document thread --> - </ul> + </div> </div> <t t-name="mail.thread"> @@ -185,43 +185,42 @@ <!-- default layout --> <t t-name="mail.thread.message"> - <div t-attf-class="oe_msg oe_lvl_#{widget.datasets.thread_level} oe_msg_#{widget.datasets.type} oe_msg_#{widget.datasets.to_read?'unread':'read'}"> - <!-- message actions (read/unread, reply, delete...) --> + <div t-attf-class="oe_msg oe_lvl_#{widget.thread_level} oe_msg_#{widget.type} oe_msg_#{widget.to_read?'unread':'read'}"> <div class='oe_msg_left'> - <a t-attf-href="#model=res.partner&id=#{widget.datasets.author_id[0]}" t-att-title="widget.datasets.author_id[1]"> - <img class="oe_msg_icon" t-att-src="widget.datasets.avatar"/> + <a t-attf-href="#model=res.partner&id=#{widget.author_id[0]}" t-att-title="widget.author_id[1]"> + <img class="oe_msg_icon" t-att-src="widget.avatar"/> </a> </div> <div class="oe_msg_center"> <div class='oe_msg_icons'> - <span class='oe_read' t-if="widget.datasets.show_read_unread_button"><a title="Read" class="oe_e">W</a></span> - <span class='oe_unread' t-if="widget.datasets.show_read_unread_button"><a title="Set back to unread" class="oe_e">W</a></span> - <span class='oe_reply' t-if="widget.datasets.show_reply_button"><a title="Reply" class="oe_e">(</a></span> - <span class='oe_star'><a t-attf-class="oe_e oe_mail_starbox #{widget.datasets.has_stared?'oe_stared':''}">7</a></span> + <span class='oe_read' t-if="widget.show_read_unread_button"><a title="Read" class="oe_e">W</a></span> + <span class='oe_unread' t-if="widget.show_read_unread_button"><a title="Set back to unread" class="oe_e">W</a></span> + <span class='oe_reply' t-if="widget.show_reply_button"><a title="Reply" class="oe_e">(</a></span> + <span class='oe_star'><a t-attf-class="oe_e oe_mail_starbox #{widget.has_stared?'oe_stared':''}">7</a></span> </div> <!-- message itself --> <div class="oe_msg_content"> - <h1 t-if="widget.datasets.subject" class="oe_msg_title"> - <t t-raw="widget.datasets.subject"/> + <h1 t-if="widget.subject" class="oe_msg_title"> + <t t-raw="widget.subject"/> </h1> <div class="oe_msg_body"> - <t t-if="widget.options.show_record_name and widget.datasets.record_name and (!widget.datasets.subject) and !widget.options.thread_level and !widget.options.display_on_thread[0] and widget.datasets.model!='res.partner'"> - <a class="oe_mail_action_model" t-attf-href="#model=#{widget.datasets.model}&id=#{widget.datasets.res_id}"><t t-raw="widget.datasets.record_name"/></a> + <t t-if="widget.options.show_record_name and widget.record_name and (!widget.subject) and !widget.options.thread_level and !widget.options.display_on_thread[0] and widget.model!='res.partner'"> + <a class="oe_mail_action_model" t-attf-href="#model=#{widget.model}&id=#{widget.res_id}"><t t-raw="widget.record_name"/></a> </t> - <t t-raw="widget.datasets.body"/> + <t t-raw="widget.body"/> </div> - <t t-if="widget.datasets.attachment_ids.length > 0"> + <t t-if="widget.attachment_ids.length > 0"> <t t-call="mail.thread.message.attachments"/> </t> </div> <div class="oe_msg_footer"> - from <a t-if="widget.datasets.author_id" t-attf-href="#model=res.partner&id=#{widget.datasets.author_id[0]}"><t t-raw="widget.datasets.author_id[1]"/></a> - <span t-att-title="widget.datasets.date"><t t-raw="widget.datasets.timerelative"/></span> - <a t-if="widget.datasets.attachment_ids.length > 0" class="oe_mail_msg_view_attachments"> - <t t-if="widget.datasets.attachment_ids.length == 1">1 Attachment</t> - <t t-if="widget.datasets.attachment_ids.length > 1"><t t-raw="widget.datasets.attachment_ids.length"/> Attachments</t> + from <a t-if="widget.author_id" t-attf-href="#model=res.partner&id=#{widget.author_id[0]}"><t t-raw="widget.author_id[1]"/></a> + <span t-att-title="widget.date"><t t-raw="widget.timerelative"/></span> + <a t-if="widget.attachment_ids.length > 0" class="oe_mail_msg_view_attachments"> + <t t-if="widget.attachment_ids.length == 1">1 Attachment</t> + <t t-if="widget.attachment_ids.length > 1"><t t-raw="widget.attachment_ids.length"/> Attachments</t> </a> <t t-call="mail.thread.message.vote"/> </div> @@ -231,9 +230,9 @@ <!-- expandable message layout --> <t t-name="mail.thread.expandable"> - <div t-attf-class="oe_msg oe_msg_#{widget.datasets.type} oe_msg_unread"> + <div t-attf-class="oe_msg oe_msg_#{widget.type} oe_msg_unread"> <div class="oe_msg_content oe_msg_more_message"> - <a class="oe_msg_fetch_more">Load more messages <span t-if="widget.datasets.nb_messages>0">(<t t-raw="widget.datasets.nb_messages"/> messages not display)</span>...</a> + <a class="oe_msg_fetch_more">Load more messages <span t-if="widget.nb_messages>0">(<t t-raw="widget.nb_messages"/> messages not display)</span>...</a> </div> </div> </t> @@ -254,22 +253,22 @@ <span t-name="mail.thread.message.vote"> <!-- <span class="oe_left oe_mail_vote_count"> - <t t-if='widget.datasets.has_voted'> + <t t-if='widget.has_voted'> You </t> - <t t-if='(widget.datasets.vote_nb - (widget.datasets.has_voted ? 1 : 0)) > 0'> - <t t-if='widget.datasets.has_voted'> and </t> - <t t-esc="widget.datasets.vote_nb"/> people + <t t-if='(widget.vote_nb - (widget.has_voted ? 1 : 0)) > 0'> + <t t-if='widget.has_voted'> and </t> + <t t-esc="widget.vote_nb"/> people </t> - <t t-if='(widget.datasets.vote_nb - (widget.datasets.has_voted ? 1 : 0)) > 0'> - <t t-raw="(widget.datasets.vote_nb - (widget.datasets.has_voted ? 1 : 0))"/> + <t t-if='(widget.vote_nb - (widget.has_voted ? 1 : 0)) > 0'> + <t t-raw="(widget.vote_nb - (widget.has_voted ? 1 : 0))"/> concur </t> </span> <button t-attf-class="oe_msg_vote oe_tag"> <span> - <t t-if="!widget.datasets.has_voted">Concur</t> - <t t-if="widget.datasets.has_voted">Respectfully disagree</t> + <t t-if="!widget.has_voted">Concur</t> + <t t-if="widget.has_voted">Respectfully disagree</t> </span> </button> --> |
