admin user list: Replace the buttons with icons.

1. Replaced the deactivate and reactivate buttons with icons.
2. Added (you) near the current user name to denote his/her account in
the entire user list.

Tweaked by tabbott to reuse the (you) formatting from the right
sidebar here for readability and consistency.

Fixes #6313.
This commit is contained in:
Jagan
2020-04-06 10:45:39 +05:30
committed by Tim Abbott
parent 09ea778db1
commit c69dc720ff
4 changed files with 22 additions and 19 deletions

View File

@@ -78,7 +78,8 @@ function update_view_on_deactivate(row) {
row.find('i.deactivated-user-icon').show();
button.addClass("btn-warning reactivate");
button.removeClass("deactivate btn-danger");
button.text(i18n.t("Reactivate"));
button.html("<i class='fa fa-user-plus' aria-hidden='true'></i>");
button.attr('title', 'Reactivate');
row.addClass("deactivated_user");
if (user_role) {
@@ -95,7 +96,8 @@ function update_view_on_reactivate(row) {
row.find('i.deactivated-user-icon').hide();
button.addClass("btn-danger deactivate");
button.removeClass("btn-warning reactivate");
button.text(i18n.t("Deactivate"));
button.attr('title', 'Deactivate');
button.html('<i class="fa fa-user-plus" aria-hidden="true"></i>');
row.removeClass("deactivated_user");
if (user_role) {