From 7137891a8a5d024a7f36a5af1d3a3c2686a9a96a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Thu, 26 Nov 2015 10:48:29 +0100 Subject: [FIX] mail, im_livechat: correctly displayed message date Messages are required to be displayed in a smarter way: relative to the current date, if it's a recent message, or absolute if not. This commits rework most of the date processing code to comply with these requirements. Messages were preprocessed each time a thread is rendered, which is stupid. It should be preprocessed only when the message is created. This was a small problem because livechat does not use the chat manager, so a simplified version of the preprocessing had to be done. --- addons/mail/static/src/xml/thread.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'addons/mail/static/src/xml/thread.xml') diff --git a/addons/mail/static/src/xml/thread.xml b/addons/mail/static/src/xml/thread.xml index 394627940cb..70996dd7d47 100644 --- a/addons/mail/static/src/xml/thread.xml +++ b/addons/mail/static/src/xml/thread.xml @@ -30,11 +30,11 @@ -
+
- + - +
@@ -56,8 +56,8 @@ t-att-src="message.avatar_src" class="o_thread_message_avatar"/> - - + + - - - + + - on -- cgit v1.2.3 From 2c84cd4181f8601ec21ffd9b7edb4013c141beb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Thu, 26 Nov 2015 14:57:16 +0100 Subject: [FIX] mail: various improvements/fixes - display appropriate message when no results are found in a search - don't display 'you have been invited' notif when creating private channel - correctly join when a user was invited in a public channel - display a message when a user join a channel through an invitation - don't display subject for message of type notification (still a mystery why it happens in test.odoo.com for channel of type mailing) - better heuristic on when to display message subject - tweak sidebar text color (slightly whiter) - add ... to the placeholder of the text area in the composer - invert send and icons for attach/smiley in composer - don't display 'read less' on expanded messages - exclude livechat channels from channel mention suggestions --- addons/mail/static/src/xml/thread.xml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'addons/mail/static/src/xml/thread.xml') diff --git a/addons/mail/static/src/xml/thread.xml b/addons/mail/static/src/xml/thread.xml index 70996dd7d47..ebf6687c1a3 100644 --- a/addons/mail/static/src/xml/thread.xml +++ b/addons/mail/static/src/xml/thread.xml @@ -9,9 +9,13 @@ - + + +
No matches found
+
No message matches your search. Try to change your search filters.
+
@@ -107,7 +111,7 @@
-

Subject:

+

Subject:

@@ -115,7 +119,6 @@
-- cgit v1.2.3