mirror of https://github.com/zulip/zulip.git
Clean admin_user_list.handlebars to use 4 space indents.
This commit is contained in:
parent
af880b8bab
commit
ae2585ac8d
|
@ -1,73 +1,73 @@
|
|||
{{#with user}}
|
||||
<tr class="user_row{{#unless is_active}} deactivated_user{{/unless}}" data-user-id="{{user_id}}" data-email="{{email}}">
|
||||
<td>
|
||||
<span class="user_name">{{full_name}}</span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="email">{{email}}</span>
|
||||
</td>
|
||||
{{#if is_bot}}
|
||||
<td>
|
||||
<span class="owner">{{bot_owner}}</span>
|
||||
<span class="user_name">{{full_name}}</span>
|
||||
</td>
|
||||
{{else}}
|
||||
<td>
|
||||
<span class="email">{{email}}</span>
|
||||
</td>
|
||||
{{#if is_bot}}
|
||||
<td>
|
||||
<span class="owner">{{bot_owner}}</span>
|
||||
</td>
|
||||
{{else}}
|
||||
<td class="last_active">
|
||||
</td>
|
||||
{{/if}}
|
||||
{{#if ../can_modify}}
|
||||
{{/if}}
|
||||
{{#if ../can_modify}}
|
||||
<td>
|
||||
<span class="user-status-settings">
|
||||
{{#if is_active}}
|
||||
<button class="button white rounded small deactivate btn-danger">
|
||||
{{t "Deactivate" }}
|
||||
</button>
|
||||
{{else}}
|
||||
<button class="button white rounded small reactivate btn-warning">
|
||||
{{t "Reactivate" }}
|
||||
</button>
|
||||
{{/if}}
|
||||
</span>
|
||||
<span class="user-admin-settings">
|
||||
{{#if is_active_human}}
|
||||
{{#if is_admin}}
|
||||
<button class="button white rounded small remove-admin btn-danger">
|
||||
{{t "Remove admin" }}
|
||||
<span class="user-status-settings">
|
||||
{{#if is_active}}
|
||||
<button class="button white rounded small deactivate btn-danger">
|
||||
{{t "Deactivate" }}
|
||||
</button>
|
||||
{{else}}
|
||||
<button class="button white rounded small make-admin btn-warning">
|
||||
{{t "Make admin" }}
|
||||
{{else}}
|
||||
<button class="button white rounded small reactivate btn-warning">
|
||||
{{t "Reactivate" }}
|
||||
</button>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</span>
|
||||
<button class="button white rounded small btn-warning open-user-form{{#unless is_active}} display-none{{/unless}}" title="{{t 'Edit user' }}" data-user-id="{{user_id}}">
|
||||
<i class="icon-vector-pencil"></i>
|
||||
</button>
|
||||
<div class='admin-user-status'>
|
||||
</div>
|
||||
{{/if}}
|
||||
</span>
|
||||
<span class="user-admin-settings">
|
||||
{{#if is_active_human}}
|
||||
{{#if is_admin}}
|
||||
<button class="button white rounded small remove-admin btn-danger">
|
||||
{{t "Remove admin" }}
|
||||
</button>
|
||||
{{else}}
|
||||
<button class="button white rounded small make-admin btn-warning">
|
||||
{{t "Make admin" }}
|
||||
</button>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</span>
|
||||
<button class="button white rounded small btn-warning open-user-form{{#unless is_active}} display-none{{/unless}}" title="{{t 'Edit user' }}" data-user-id="{{user_id}}">
|
||||
<i class="icon-vector-pencil"></i>
|
||||
</button>
|
||||
<div class='admin-user-status'>
|
||||
</div>
|
||||
</td>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</tr>
|
||||
<tr class="user-name-form display-none" data-user-id="{{user_id}}">
|
||||
<td colspan="{{#if is_bot}}4{{else}}3{{/if}}">
|
||||
<form class="form-horizontal name-setting">
|
||||
<input type="hidden" name="is_full_name" value="true" />
|
||||
<div class="input-group name_change_container">
|
||||
<label for="full_name">{{t "Full name" }}</label>
|
||||
<input type="text" name="full_name" value="{{ full_name }}" />
|
||||
</div>
|
||||
{{#if is_bot}}
|
||||
<div class="input-group edit_bot_owner_container">
|
||||
<label for="bot_owner_select">{{t "Owner" }}</label>
|
||||
</div>
|
||||
{{/if}}
|
||||
<div class="input-group">
|
||||
<button type="button" class="button white rounded sea-green submit_name_changes">
|
||||
{{t 'Save changes' }}
|
||||
</button>
|
||||
<button type="button" class="button white rounded btn-danger reset_edit_user">{{t 'Cancel' }}</button>
|
||||
</div>
|
||||
</form>
|
||||
</td>
|
||||
<td colspan="{{#if is_bot}}4{{else}}3{{/if}}">
|
||||
<form class="form-horizontal name-setting">
|
||||
<input type="hidden" name="is_full_name" value="true" />
|
||||
<div class="input-group name_change_container">
|
||||
<label for="full_name">{{t "Full name" }}</label>
|
||||
<input type="text" name="full_name" value="{{ full_name }}" />
|
||||
</div>
|
||||
{{#if is_bot}}
|
||||
<div class="input-group edit_bot_owner_container">
|
||||
<label for="bot_owner_select">{{t "Owner" }}</label>
|
||||
</div>
|
||||
{{/if}}
|
||||
<div class="input-group">
|
||||
<button type="button" class="button white rounded sea-green submit_name_changes">
|
||||
{{t 'Save changes' }}
|
||||
</button>
|
||||
<button type="button" class="button white rounded btn-danger reset_edit_user">{{t 'Cancel' }}</button>
|
||||
</div>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
{{/with}}
|
||||
|
|
|
@ -216,7 +216,6 @@ def check_handlebar_templates(templates):
|
|||
# Ignore these files since these have not been cleaned yet :/
|
||||
IGNORE_FILES = [
|
||||
'static/templates/actions_popover_content.handlebars',
|
||||
'static/templates/admin_user_list.handlebars',
|
||||
'static/templates/bot_avatar_row.handlebars',
|
||||
'static/templates/user_sidebar_actions.handlebars',
|
||||
'static/templates/settings/account-settings.handlebars',
|
||||
|
|
Loading…
Reference in New Issue