summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml/chatter.xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/mail/static/src/xml/chatter.xml')
-rw-r--r--addons/mail/static/src/xml/chatter.xml10
1 files changed, 9 insertions, 1 deletions
diff --git a/addons/mail/static/src/xml/chatter.xml b/addons/mail/static/src/xml/chatter.xml
index 7fe1eeebd77..23202f608b9 100644
--- a/addons/mail/static/src/xml/chatter.xml
+++ b/addons/mail/static/src/xml/chatter.xml
@@ -60,7 +60,7 @@
<!-- List of followers -->
<div class="o_composer_suggested_partners">
<t t-foreach='widget.suggestedPartners' t-as='recipient'>
- <div t-attf-title="Add as recipient and follower (reason: #{recipient.reason})">
+ <div t-attf-title="Add as recipient and follower (reason: #{recipient.reason})" t-att-class="recipient_index > 2 ? 'o_suggested_toggle o_hidden' : ''">
<div class="custom-control custom-checkbox">
<input type="checkbox"
class="custom-control-input"
@@ -74,6 +74,14 @@
</div>
</div>
</t>
+ <t t-if='widget.suggestedPartners.length > 3'>
+ <a href="#" class='o_suggested_show_more_less o_suggested_toggle'>
+ Show <t t-esc="widget.suggestedPartners.length - 3"/> more
+ </a>
+ <a href="#" class='o_suggested_show_more_less o_suggested_toggle o_hidden'>
+ Show <t t-esc="widget.suggestedPartners.length - 3"/> less
+ </a>
+ </t>
</div>
</t>
</t>