|
@ -1,19 +1,36 @@ |
|
|
<?xml version="1.0" encoding="UTF-8"?> |
|
|
<?xml version="1.0" encoding="UTF-8"?> |
|
|
|
|
|
<!--Copyright 2016 x620 <https://github.com/x620> |
|
|
|
|
|
Copyright 2017 Ivan Yelizariev <https://it-projects.info/team/yelizariev> |
|
|
|
|
|
Copyright 2019 Artem Rafailov <https://it-projects.info/team/Ommo73/> |
|
|
|
|
|
License LGPL-3.0 (https://www.gnu.org/licenses/lgpl.html).--> |
|
|
<template> |
|
|
<template> |
|
|
<t t-extend="mail.ChatThread.Message"> |
|
|
<t t-extend="mail.ChatThread.Message"> |
|
|
<t t-jquery="p[class=o_mail_info] span:last" t-operation="after"> |
|
|
<t t-jquery="p[class=o_mail_info] span:last" t-operation="after"> |
|
|
<span class="recipients_info"><t t-if="message.partner_ids"> |
|
|
<span class="recipients_info"><t t-if="message.partner_ids"> |
|
|
<t t-if="message.partner_ids.length > 0">To: </t> |
|
|
<t t-if="message.partner_ids.length > 0">To: </t> |
|
|
|
|
|
<t t-else="message.channel_ids.length > 0">To: </t> |
|
|
<t t-foreach="message.partner_ids.length" t-as="i"> |
|
|
<t t-foreach="message.partner_ids.length" t-as="i"> |
|
|
<t t-if="i < message.more_recipients_value"> |
|
|
<t t-if="i < message.more_recipients_value"> |
|
|
<a t-att-href="_.str.sprintf('/web?#id=%s&view_type=form&model=res.partner', message.partner_ids[i][0])" class="recipient_link"> |
|
|
<a t-att-href="_.str.sprintf('/web?#id=%s&view_type=form&model=res.partner', message.partner_ids[i][0])" class="recipient_link"> |
|
|
<i t-esc="message.partner_ids[i][1]"/><t t-if="i < message.partner_ids.length - 1">; </t> |
|
|
|
|
|
|
|
|
<i t-esc="message.partner_ids[i][1]"/><t t-if="i < message.partner_ids.length - 1">; </t><t t-else="message.channel_ids.length > 0 and message.partner_ids.length < 4">; </t> |
|
|
</a> |
|
|
</a> |
|
|
</t> |
|
|
</t> |
|
|
</t> |
|
|
</t> |
|
|
<t t-if="message.partner_ids.length > message.more_recipients_value"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<t t-if="message.channel_names"> |
|
|
|
|
|
<t t-foreach="message.channel_ids.length" t-as="i"> |
|
|
|
|
|
<t t-if="message.partner_ids.length < message.more_recipients_value and (message.partner_ids.length + i) < message.more_recipients_value"> |
|
|
|
|
|
<a t-if="message.channel_names[i]" t-att-href="_.str.sprintf('/web?#id=%s&view_type=form&model=mail.channel', message.channel_names[i][0])" class="recipient_link"> |
|
|
|
|
|
<i t-esc="message.channel_names[i][1]"/><t t-if="i < message.channel_ids.length - 1">; </t> |
|
|
|
|
|
</a> |
|
|
|
|
|
</t> |
|
|
|
|
|
</t> |
|
|
|
|
|
</t> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<t t-if="message.recipients.length > message.more_recipients_value"> |
|
|
<span t-att-title="message.more_recipients"> |
|
|
<span t-att-title="message.more_recipients"> |
|
|
and <t t-esc="message.partner_ids.length - message.more_recipients_value"/> more |
|
|
|
|
|
|
|
|
and <t t-esc="message.recipients.length - message.more_recipients_value"/> more |
|
|
</span> |
|
|
</span> |
|
|
</t> |
|
|
</t> |
|
|
</t></span> |
|
|
</t></span> |
|
|