diff options
| author | Aaron Bohy <aab@odoo.com> | 2015-11-10 12:19:38 +0100 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2015-11-12 08:51:56 +0100 |
| commit | 5264ccf0d0ebbfc6600ba5d3c0efc16bbe05c4d4 (patch) | |
| tree | 00a61360f7c5855b37f16d9bc728e64becdd9b2c /addons/mail/static/src/xml/thread.xml | |
| parent | dbc1061854c42578905f2aa6ecd0e77e3732c01a (diff) | |
[IMP] mail: needactions and messages read
Mainly concern the client action:
- Display needactions per channels
- For all channels except Inbox, clear needactions when opening the channel
- Add snackbar to undo needactions clearing
- Display a separator between read and unread messages in threads
- Fix active channel (for Inbox and Starred) display in sidebar
Various minor changes in chat_manager:
- Code refactoring of bus notification handler
- get_channel() don't fallback anymore on first channel
Diffstat (limited to 'addons/mail/static/src/xml/thread.xml')
| -rw-r--r-- | addons/mail/static/src/xml/thread.xml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/addons/mail/static/src/xml/thread.xml b/addons/mail/static/src/xml/thread.xml index 94719437441..7d1c28e964a 100644 --- a/addons/mail/static/src/xml/thread.xml +++ b/addons/mail/static/src/xml/thread.xml @@ -17,6 +17,7 @@ </t> <t t-name="mail.ChatThread.Content"> + <t t-if="options.messages_separator_position == 'top'" t-call="mail.MessagesSeparator"/> <t t-set="current_day" t-value="0"/> <t t-foreach="messages" t-as="message"> <div t-if="current_day != message.date.split(' ')[0]" class="o_thread_date_separator"> @@ -102,6 +103,15 @@ </t> </div> </div> + <t t-if="options.messages_separator_position == message.id"> + <t t-call="mail.MessagesSeparator"/> + </t> + </t> + + <t t-name="mail.MessagesSeparator"> + <div class="o_thread_new_messages_separator"> + <span class="o_thread_separator_label">New messages</span> + </div> </t> <t t-name="mail.ChatThread.MessageTracking"> |
