diff options
| author | Jérome Maes <jem@openerp.com> | 2016-12-26 11:32:25 +0100 |
|---|---|---|
| committer | Jérome Maes <jem@openerp.com> | 2017-06-30 11:06:32 +0200 |
| commit | d79678fdd5faccffff65a439653fa5d639a3d3c4 (patch) | |
| tree | 7cb3f4a849289dbae3983daefea02c6cbbd21467 /addons/website_mail/static/src/css | |
| parent | 890e665b882b27184003cc5de6ad365f2910815d (diff) | |
[IMP] website_mail: make the frontend chatter lazy
Message are now fetched and display using javascript
to optimize performance.
Also the chatter is completely rewrite : add pager,
filter possiblity, ...
This commit is mainly technical: posting feature does
not change. Only the display with pager is new.
The goal is also to prepare frontend chatter for a
better integration with rating widget.
The mail.thread mixin is extended to manage the field
website_message_ids (display all messages that can be
seen on frontend by user (employee or not).
When fetching or posting message, a check is done to see
if we need to do it as sudo(). website_mail implement posting
messages with token or sha_in (using in website_quote).
The same verification is now done when fetching messages, via
'_special_access_object' method.
Diffstat (limited to 'addons/website_mail/static/src/css')
| -rw-r--r-- | addons/website_mail/static/src/css/website_mail.css | 4 | ||||
| -rw-r--r-- | addons/website_mail/static/src/css/website_mail.less | 38 |
2 files changed, 38 insertions, 4 deletions
diff --git a/addons/website_mail/static/src/css/website_mail.css b/addons/website_mail/static/src/css/website_mail.css deleted file mode 100644 index 5678442416c..00000000000 --- a/addons/website_mail/static/src/css/website_mail.css +++ /dev/null @@ -1,4 +0,0 @@ -.js_follow[data-follow='on'] .js_follow_btn , -.js_follow[data-follow='off'] .js_unfollow_btn { - display: none; -}
\ No newline at end of file diff --git a/addons/website_mail/static/src/css/website_mail.less b/addons/website_mail/static/src/css/website_mail.less new file mode 100644 index 00000000000..dda250e65e5 --- /dev/null +++ b/addons/website_mail/static/src/css/website_mail.less @@ -0,0 +1,38 @@ +.js_follow[data-follow='on'] .js_follow_btn , +.js_follow[data-follow='off'] .js_unfollow_btn { + display: none; +} + +.o_website_mail_chatter { + padding: 10px; + + .o_website_mail_avatar{ + width: 45px; + height: 45px; + } + + .o_website_mail_header { + margin-bottom: 15px; + } + + .o_website_mail_composer { + margin-bottom: 15px; + } + + .o_website_mail_messages { + margin-bottom: 15px; + + .o_website_mail_message_title { + p { + font-size:85%; + color:@odoo-main-color-muted; + margin: 0px; + } + } + + } + + .o_website_mail_pager { + text-align: center; + } +} |
