mirror of https://github.com/zulip/zulip.git
62 lines
2.3 KiB
Handlebars
62 lines
2.3 KiB
Handlebars
<tr class="user_row{{#unless is_active}} deactivated_user{{/unless}}" data-user-id="{{user_id}}">
|
|
<td>
|
|
<span class="user_name" >
|
|
<a data-user-id="{{user_id}}" class="view_user_profile" tabindex="0">{{full_name}}</a>
|
|
{{#if is_current_user}}<span class="my_user_status">{{t '(you)' }}</span>{{/if}}</span>
|
|
<i class="fa fa-ban deactivated-user-icon" title="{{t 'User is deactivated' }}" {{#if is_active}}style="display: none;"{{/if}}></i>
|
|
</td>
|
|
{{#if display_email}}
|
|
<td>
|
|
<span class="email">{{display_email}}</span>
|
|
</td>
|
|
{{else}}
|
|
<td>
|
|
<span class="hidden-email">{{t "(hidden)"}}</span>
|
|
</td>
|
|
{{/if}}
|
|
{{#unless is_bot}}
|
|
<td>
|
|
<span class="user_id">{{user_id}}</span>
|
|
</td>
|
|
{{/unless}}
|
|
<td>
|
|
<span class="user_role">{{user_role_text}}</span>
|
|
</td>
|
|
{{#if is_bot}}
|
|
<td class="user_role">
|
|
<span class="owner">
|
|
{{#if no_owner }}
|
|
{{bot_owner_full_name}}
|
|
{{else}}
|
|
<a data-user-id="{{bot_owner_id}}" class="view_user_profile" tabindex="0">{{bot_owner_full_name}}</a>
|
|
{{/if}}
|
|
</span>
|
|
</td>
|
|
<td>
|
|
<span class="bot type">{{bot_type}}</span>
|
|
</td>
|
|
{{else if is_active}}
|
|
<td class="last_active">
|
|
{{ last_active_date }}
|
|
</td>
|
|
{{/if}}
|
|
{{#if can_modify}}
|
|
<td class="actions">
|
|
<span class="user-status-settings">
|
|
<button class="button rounded small btn-warning open-user-form" {{#unless is_active}}style="display: none;"{{/unless}} title="{{#if is_bot}}{{t 'Edit bot' }}{{else}}{{t 'Edit user' }}{{/if}}" data-user-id="{{user_id}}">
|
|
<i class="fa fa-pencil" aria-hidden="true"></i>
|
|
</button>
|
|
{{#if is_active}}
|
|
<button title="{{t 'Deactivate' }}" class="button rounded small deactivate btn-danger" {{#if cannot_deactivate}}disabled="disabled"{{/if}}>
|
|
<i class="fa fa-user-times" aria-hidden="true"></i>
|
|
</button>
|
|
{{else}}
|
|
<button title="{{t 'Reactivate' }}" class="button rounded small reactivate btn-warning">
|
|
<i class="fa fa-user-plus" aria-hidden="true"></i>
|
|
</button>
|
|
{{/if}}
|
|
</span>
|
|
</td>
|
|
{{/if}}
|
|
</tr>
|