diff options
Diffstat (limited to 'addons/mail/static/src/xml/mail_chat_common.xml')
| -rw-r--r-- | addons/mail/static/src/xml/mail_chat_common.xml | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/addons/mail/static/src/xml/mail_chat_common.xml b/addons/mail/static/src/xml/mail_chat_common.xml deleted file mode 100644 index 7bbbc3f94d7..00000000000 --- a/addons/mail/static/src/xml/mail_chat_common.xml +++ /dev/null @@ -1,93 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<templates xml:space="preserve"> - - <t t-name="mail.chat.im.Conversation"> - <div class="o_mail_chat_im_window openerp"> - <div class="o_mail_chat_im_window_header"> - <span class="o_mail_chat_im_window_header_name"> - <t t-raw="widget.get('session').name"/> - </span> - <span class="nbr_messages o_mail_chat_im_window_header_counter"/> - <span class="o_mail_chat_im_window_header_buttons"> - <div class="o_mail_chat_im_window_close">×</div> - </span> - </div> - <div class="o_mail_chat_im_window_content"> - <t t-call="mail.chat.im.Conversation.messages"/> - </div> - <div class="oe_im_chatview_footer o_mail_chat_im_window_footer"> - <input class="o_mail_chat_im_window_input" t-att-placeholder="widget.options.placeholder"/> - </div> - </div> - </t> - - <t t-name="mail.chat.im.Conversation.messages"> - <div class="o_mail_chat_im_messages"> - <t t-set="current_day" t-value="0"/> - <t t-foreach="widget.get('messages')" t-as="message"> - <div t-if="current_day != message.date.split(' ')[0]" class="row o_mail_chat_im_window_date_sperator"> - <t t-raw="moment(message.date, 'YYYY-MM-DD hh:mm:ss').format('LL')"/> - <t t-set="current_day" t-value="message.date.split(' ')[0]"/> - </div> - <div class="o_mail_chat_im_message"> - <div class="o_mail_chat_im_message_avatar"> - <img t-if="message.message_type == 'email' && (!message.author_id || !message.author_id[0]) && message.email_from" src="/mail/static/src/img/email_icon.png" alt="avatar" class="img-responsive img-rounded"/> - <img t-if="message.message_type == 'email' && (message.author_id && message.author_id[0]) && !message.email_from" t-att-src="'/web/image/res.partner/'+message.author_id[0]+'/image_small'" class="img-responsive img-rounded"/> - <img t-if="message.message_type !== 'email' && (message.author_id && message.author_id[0])" t-att-src="'/web/image/mail.message/'+message.id+'/author_avatar'" class="img-responsive img-rounded"/> - <img t-if="message.message_type !== 'email' && (!message.author_id || !message.author_id[0])" src="/mail/static/src/img/smiley/avatar.jpg" class="img-responsive img-rounded"/> - </div> - <div class="o_mail_chat_im_message_core"> - <!-- author --> - <span class="text-muted"> - <t t-if="message.author_id && message.author_id[0]"> - <strong><t t-esc="message.author_id[1]"/></strong> - - </t> - <t t-if="!message.author_id || !message.author_id[0]"> - <strong><t t-esc="default_username || widget.options.default_username"/></strong> - - </t> - <t t-if="!message.author_id"> - <strong><t t-esc="message.email_from"/></strong> - - </t> - <span class="small"><t t-esc="moment(message.date, 'YYYY-MM-DD hh:mm:ss').format('hh:mm')"/></span> - </span> - <!-- body --> - <p class="o_mail_chat_im_message_body"> - <t t-if="message.body"> - <t t-raw="message.body"/> <!-- TODO JEM : tracking message and attachments ??!! --> - </t> - <t t-if="!message.body"> - <t t-call="mail.chat.im.Conversation.tracking_message"/> - </t> - </p> - <!-- Attachments --> - <div t-attf-class="o_mail_chat_im_message_attachment"> - <t t-foreach="message.attachment_ids" t-as="attachment"> - <a t-att-href='attachment.url' target="_blank"> - <i t-att-class="attachment.fa_class" t-att-title="'Download ' + (attachment.name || attachment.filename)"/> - </a> - </t> - </div> - </div> - </div> - </t> - </div> - </t> - - <t t-name="mail.chat.im.Conversation.tracking_message"> - <div> - <ul class="o_mail_message_tracking"> - <t t-foreach='message.tracking_value_ids' t-as='value'> - <li> - <t t-esc="value.changed_field"/> : - <t t-if="value.old_value"> - <span class="o_mail_message_tracking_value"> <t t-esc="value.old_value"/> </span> - <span> <i class="fa fa-long-arrow-right"></i> </span> - </t> - <span class="o_mail_message_tracking_value"> <t t-esc="value.new_value"/> </span> - </li> - </t> - </ul> - </div> - </t> - -</templates>
\ No newline at end of file |
