This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/templates/user-selector-autocomplete.raw.hbs
Sam ad3dd161e7 FEATURE: first class group mentions built in
If you allow a group to be mentioned it can be mentioned with the @ symbol.

Keep in mind as a safety mechanism max_users_notified_per_group_mention is set to 100
2015-11-30 17:08:43 +11:00

25 lines
636 B
Handlebars

<div class='autocomplete'>
<ul>
{{#each user in options.users}}
<li>
<a href>
{{avatar user imageSize="tiny"}}
<span class='username'>{{user.username}}</span>
<span class='name'>{{user.name}}</span>
</a>
</li>
{{/each}}
{{#if options.groups}}
{{#each group in options.groups}}
<li>
<a href>
<i class='fa fa-users'></i>
<span class='username'>{{group.name}}</span>
<span class='name'>{{max-usernames group.usernames max="3"}}</span>
</a>
</li>
{{/each}}
{{/if}}
</ul>
</div>