mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user