zulip/web/templates/user_display_only_pill.hbs

20 lines
1.0 KiB
Handlebars
Raw Normal View History

<span class="pill-container display_only_pill {{#if is_inline}}inline_with_text_pill{{/if}}">
<a data-user-id="{{user_id}}" class="view_user_profile pill" tabindex="0">
{{#if img_src}}
<img class="pill-image" src="{{img_src}}" />
{{/if}}
<span class="pill-label {{#if strikethrough}} strikethrough {{/if}}" >
<span class="pill-value">{{display_value}}</span>
{{#if is_current_user}}<span class="my_user_status">{{t '(you)'}}</span>{{/if}}
{{~#if should_add_guest_user_indicator}}&nbsp;<i>({{t 'guest'}})</i>{{~/if~}}
{{~#if deactivated}}&nbsp;({{t 'deactivated'}}){{~/if~}}
{{~#if has_status~}}
{{~> status_emoji status_emoji_info~}}
{{~/if~}}
</span>
</a>
{{#unless is_active}}
<i class="fa fa-ban pill-deactivated deactivated-user-icon tippy-zulip-delayed-tooltip" data-tippy-content="{{#if is_bot}}{{t 'Bot is deactivated' }}{{else}}{{t 'User is deactivated' }}{{/if}}"></i>
{{/unless}}
</span>