discourse/app/assets/javascripts/select-kit/addon/templates/components/email-group-user-chooser-ro...

13 lines
385 B
Handlebars

{{#if item.isUser}}
{{avatar item imageSize="tiny"}}
<span class="identifier">{{format-username item.id}}</span>
<span class="name">{{item.name}}</span>
{{else if item.isGroup}}
{{d-icon "users"}}
<span class="identifier">{{item.id}}</span>
<span class="name">{{item.full_name}}</span>
{{else}}
{{d-icon "envelope"}}
<span class="identifier">{{item.id}}</span>
{{/if}}