2024-07-10 11:12:55 +02:00
|
|
|
<tr class="user_row{{#if is_active}} active-user{{else}} deactivated_user{{/if}}" data-user-id="{{user_id}}">
|
2024-06-09 20:19:04 +02:00
|
|
|
<td class="user_name panel_user_list">
|
|
|
|
{{> ../user_display_only_pill display_value=full_name user_id=user_id img_src=img_src}}
|
2014-01-17 20:42:28 +01:00
|
|
|
</td>
|
2020-05-08 15:21:12 +02:00
|
|
|
{{#if display_email}}
|
2024-06-14 17:32:19 +02:00
|
|
|
<td class="email settings-email-column">
|
2020-05-08 15:21:12 +02:00
|
|
|
<span class="email">{{display_email}}</span>
|
2017-04-26 04:49:12 +02:00
|
|
|
</td>
|
2021-11-06 14:33:09 +01:00
|
|
|
{{else}}
|
2024-06-14 17:32:19 +02:00
|
|
|
<td class="email settings-email-column">
|
2021-11-06 14:33:09 +01:00
|
|
|
<span class="hidden-email">{{t "(hidden)"}}</span>
|
|
|
|
</td>
|
2019-06-20 14:58:28 +02:00
|
|
|
{{/if}}
|
2018-10-01 14:05:54 +02:00
|
|
|
<td>
|
2021-04-29 15:49:01 +02:00
|
|
|
<span class="user_role">{{user_role_text}}</span>
|
2018-10-01 14:05:54 +02:00
|
|
|
</td>
|
2017-04-26 04:49:12 +02:00
|
|
|
{{#if is_bot}}
|
2024-07-11 16:38:34 +02:00
|
|
|
<td>
|
2024-06-09 20:19:04 +02:00
|
|
|
<span class="owner panel_user_list">
|
2019-11-25 09:08:18 +01:00
|
|
|
{{#if no_owner }}
|
|
|
|
{{bot_owner_full_name}}
|
|
|
|
{{else}}
|
2024-06-09 20:19:04 +02:00
|
|
|
{{> ../user_display_only_pill display_value=bot_owner_full_name user_id=bot_owner_id img_src=owner_img_src is_active=is_bot_owner_active}}
|
2019-11-25 09:08:18 +01:00
|
|
|
{{/if}}
|
|
|
|
</span>
|
2017-04-26 04:49:12 +02:00
|
|
|
</td>
|
2022-10-11 14:20:27 +02:00
|
|
|
<td class="bot_type">
|
2017-06-10 15:29:01 +02:00
|
|
|
<span class="bot type">{{bot_type}}</span>
|
|
|
|
</td>
|
2024-05-07 16:26:58 +02:00
|
|
|
{{else if display_last_active_column}}
|
2017-03-26 15:39:12 +02:00
|
|
|
<td class="last_active">
|
2020-05-08 15:21:12 +02:00
|
|
|
{{ last_active_date }}
|
2017-03-26 15:39:12 +02:00
|
|
|
</td>
|
2017-04-26 04:49:12 +02:00
|
|
|
{{/if}}
|
2020-05-08 15:21:12 +02:00
|
|
|
{{#if can_modify}}
|
2019-08-22 10:33:44 +02:00
|
|
|
<td class="actions">
|
2017-04-26 04:49:12 +02:00
|
|
|
<span class="user-status-settings">
|
2023-02-26 12:19:08 +01:00
|
|
|
<span {{#if (and is_bot cannot_edit)}}class="tippy-zulip-tooltip"{{/if}} {{#if (and is_bot cannot_edit)}}data-tippy-content="{{t 'This bot cannot be edited.'}}"{{/if}}>
|
2024-03-28 15:34:02 +01:00
|
|
|
<button class="button rounded small btn-warning open-user-form tippy-zulip-delayed-tooltip" data-tippy-content="{{#if is_bot}}{{#unless cannot_edit}}{{t 'Edit bot' }}{{/unless}}{{else}}{{t 'Edit user' }}{{/if}}" data-user-id="{{user_id}}" {{#if cannot_edit}}disabled="disabled"{{/if}}>
|
2023-02-26 12:19:08 +01:00
|
|
|
<i class="fa fa-pencil" aria-hidden="true"></i>
|
|
|
|
</button>
|
|
|
|
</span>
|
2017-04-26 04:49:12 +02:00
|
|
|
{{#if is_active}}
|
2023-02-26 12:19:08 +01:00
|
|
|
<span {{#if (and is_bot cannot_deactivate)}}class="tippy-zulip-tooltip"{{/if}} {{#if (and is_bot cannot_deactivate)}}data-tippy-content="{{t 'This bot cannot be deactivated.'}}"{{/if}}>
|
2023-06-26 22:09:18 +02:00
|
|
|
<button class="button rounded small btn-danger {{#unless (and is_bot cannot_deactivate) }}deactivate{{/unless}}" {{#if cannot_deactivate}}disabled="disabled"{{/if}}>
|
2023-02-26 12:19:08 +01:00
|
|
|
<i class="fa fa-user-times" aria-hidden="true"></i>
|
|
|
|
</button>
|
|
|
|
</span>
|
2017-04-26 04:49:12 +02:00
|
|
|
{{else}}
|
2023-06-26 22:09:18 +02:00
|
|
|
<button class="button rounded small reactivate btn-warning">
|
2020-04-06 07:15:39 +02:00
|
|
|
<i class="fa fa-user-plus" aria-hidden="true"></i>
|
2017-04-10 23:25:11 +02:00
|
|
|
</button>
|
2017-04-26 04:49:12 +02:00
|
|
|
{{/if}}
|
|
|
|
</span>
|
2017-04-10 23:25:11 +02:00
|
|
|
</td>
|
2017-04-26 04:49:12 +02:00
|
|
|
{{/if}}
|
2013-08-12 23:31:23 +02:00
|
|
|
</tr>
|