[IMP] mail: various ui improvements
including: - reset scroll position to bottom when leaving channel - allow clicking on the avatar image - hide stars when message is of type notification - sort channel names - add # before channel names - rename Whole company channel in general - replace \n and \r in messages by <br/> - lighten the hover color of sidebar items in the client action - Display @ before mentions
This commit is contained in:
@@ -33,7 +33,18 @@
|
||||
<t t-name="mail.ChatThread.Message">
|
||||
<div class="o_thread_message" t-att-data-message-id="message.id">
|
||||
<div t-if="options.display_avatar" class="o_thread_message_sidebar">
|
||||
<img t-if="message.avatar_src && message.display_author" t-att-src="message.avatar_src" class="o_thread_message_avatar"/>
|
||||
<t t-if="!message.mailto && message.author_id[0]">
|
||||
<img t-if="message.avatar_src && message.display_author"
|
||||
t-att-src="message.avatar_src"
|
||||
data-oe-model="res.partner"
|
||||
t-att-data-oe-id="message.author_id[0]"
|
||||
class="o_thread_message_avatar o_mail_redirect"/>
|
||||
</t>
|
||||
<t t-if="message.mailto || !message.author_id[0]">
|
||||
<img t-if="message.avatar_src && message.display_author"
|
||||
t-att-src="message.avatar_src"
|
||||
class="o_thread_message_avatar"/>
|
||||
</t>
|
||||
<span t-if="!message.display_author" t-att-title="moment(message.date, 'YYYY-MM-DD hh:mm:ss').format('LLL')" class="o_thread_message_side_date">
|
||||
<t t-esc="moment(message.date, 'YYYY-MM-DD hh:mm:ss').format('hh:mm')"/>
|
||||
</span>
|
||||
@@ -43,7 +54,7 @@
|
||||
<i t-if="message.is_needaction && options.display_needactions"
|
||||
class="fa fa-check o_thread_message_needaction"
|
||||
t-att-data-message-id="message.id" t-att-title="_t('Mark as Done')"/>
|
||||
<i t-if="options.display_stars"
|
||||
<i t-if="options.display_stars && message.message_type != 'notification'"
|
||||
t-att-class="'fa fa-lg o_thread_message_star ' + (message.is_starred ? 'fa-star' : 'fa-star-o')"
|
||||
t-att-data-message-id="message.id" t-att-title="_t('Mark as Todo')"/>
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user