settings: Show current user's role in Your Account.

This makes it easier to figure out what's going on if you're a guest.

Fixes: #10969.
This commit is contained in:
Akash Nimare
2018-12-07 22:54:56 +05:30
committed by Tim Abbott
parent 78e20c82a8
commit e827e36429
2 changed files with 17 additions and 0 deletions

View File

@@ -1401,6 +1401,10 @@ input[type=checkbox].inline-block {
width: auto;
}
#account-settings .user-role button {
cursor: default;
}
#account-settings .custom_user_field .field_hint {
color: hsl(0, 0%, 67%);
}

View File

@@ -124,6 +124,19 @@
</div>
</form>
<div class="user-role input-group grid">
<label for="user_role" class="inline-block title">{{t "Role" }}</label>
<button class="button small rounded">
{{#if page_params.is_admin}}
{{t "Administrator" }}
{{else if page_params.is_guest}}
{{t "Guest" }}
{{else}}
{{t "Member" }}
{{/if}}
</button>
</div>
<form class="deactivate_account grid">
<div class="input-group">
<button type="submit" class="button rounded btn-danger" id="user_deactivate_account_button">