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

14 lines
426 B
Handlebars

{{#if item.isUser}}
{{avatar item imageSize="tiny"}}
<span class="identifier">{{format-username item.id}}</span>
<span class="name">{{item.name}}</span>
{{decorate-username-selector item.id}}
{{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}}