You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
2.3 KiB
58 lines
2.3 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<template id="template" xml:space="preserve">
|
|
<t t-extend="Chrome">
|
|
<t t-jquery="div.pos-rightheader" t-operation="append">
|
|
<div class="oe_status">
|
|
<a title="Conversations" href="#">
|
|
<i class="fa fa-comments pos-message"/>
|
|
<span class="o_notification_counter"/>
|
|
</a>
|
|
</div>
|
|
</t>
|
|
</t>
|
|
|
|
<t t-name="MessageWidget">
|
|
<div class="message-box">
|
|
<div class="message">
|
|
<p class="title">
|
|
<a class="pos-selected pos-filter">All</a>
|
|
<a class="pos-filter" data-filter='chat'>Chat</a>
|
|
<a class="pos-filter" data-filter='channels'>Channels</a>
|
|
<a class="pos-new_message">New message</a>
|
|
</p>
|
|
<div class='o_mail_navbar_dropdown_channels selection scrollable-y touch-scrollable'>
|
|
<t t-foreach="widget.list || []" t-as="channel">
|
|
<div t-attf-class="o_mail_channel_preview #{channel.unread_counter ? 'o_channel_unread' : ''}"
|
|
t-att-data-channel_id="channel.id">
|
|
<img class="o_channel_image" t-att-src="channel.image_src"/>
|
|
<div class="o_channel_info">
|
|
<div class="o_channel_title">
|
|
<span class="o_channel_name">
|
|
<t t-if="channel.status" t-call="mail.chat.UserStatus">
|
|
<t t-set="status" t-value="channel.status"/>
|
|
</t>
|
|
<t t-esc="channel.name"/>
|
|
<t t-if="channel.unread_counter">(<t t-esc="channel.unread_counter"/>)</t>
|
|
</span>
|
|
<span class="o_last_message_date"> <t t-esc="channel.last_message_date"/> </span>
|
|
</div>
|
|
|
|
<div class="o_last_message_preview">
|
|
<t t-esc="channel.last_message.displayed_author"/>:
|
|
<t t-raw="channel.last_message_preview"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</t>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
|