diff options
| author | Aaron Bohy <aab@odoo.com> | 2015-10-15 15:03:48 +0200 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2015-10-16 15:52:01 +0200 |
| commit | 4c7ab52a67c990316c91a77cc3eb2280b675af88 (patch) | |
| tree | 7b47b534a8f3f48b07ab625e535d29f6e98c994a /addons/mail/static/src/xml | |
| parent | 2dfbaceaec2dd3422fb92d735d0959299fc7b5eb (diff) | |
[IMP] mail: thread: hide avatar, author and date of consecutive messages
... from the same author, written within 1 minute (restricted to comments).
Also:
- Display stars and needactions on hover only
- Display the date of messages without avatar and info in the margin on hover
- Add 'selected' state of messages (mainly for touch screens to replace hover)
- Fix typo (msg_type -> message_type) on the computation of the avatar url
Diffstat (limited to 'addons/mail/static/src/xml')
| -rw-r--r-- | addons/mail/static/src/xml/thread.xml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/addons/mail/static/src/xml/thread.xml b/addons/mail/static/src/xml/thread.xml index 596e06a6419..4fc96dc86e1 100644 --- a/addons/mail/static/src/xml/thread.xml +++ b/addons/mail/static/src/xml/thread.xml @@ -32,8 +32,11 @@ <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_avatar"> - <img t-if="message.avatar_src" t-att-src="message.avatar_src" class="o_thread_message_avatar_img"/> + <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"/> + <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> </div> <div class="o_thread_message_core"> <span class="pull-right"> @@ -44,7 +47,7 @@ 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> - <p class="o_mail_info"> + <p t-if="message.display_author" class="o_mail_info"> <t t-if="message.is_note"> Note by </t> |
