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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
620 B
Handlebars
Raw Normal View History

{{#if this.item.isUser}}
{{avatar this.item imageSize="tiny"}}
<span class="identifier">{{format-username this.item.id}}</span>
<span class="name">{{this.item.name}}</span>
{{#if (and this.item.showUserStatus this.item.status)}}
<UserStatusMessage @status={{this.item.status}} @showDescription={{true}} />
{{/if}}
{{decorate-username-selector this.item.id}}
{{else if this.item.isGroup}}
{{d-icon "users"}}
<span class="identifier">{{this.item.id}}</span>
<span class="name">{{this.item.full_name}}</span>
{{else}}
{{d-icon "envelope"}}
<span class="identifier">{{this.item.id}}</span>
{{/if}}