Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

settings: Show "hidden" in users list when email is not accessible.

Sahil Batra305131c7d71c
diff --git a/static/styles/settings.css b/static/styles/settings.css
index 6f48b3cfb1e..d4f05e08ddc 100644
--- a/static/styles/settings.css
+++ b/static/styles/settings.css
@@ -376,6 +376,10 @@ td .button {
.dropdown-toggle i.fa-pencil {
margin-left: 3px;
}
+
+ .hidden-email {
+ font-style: italic;
+ }
}
#admin-user-list,
diff --git a/static/templates/settings/admin_user_list.hbs b/static/templates/settings/admin_user_list.hbs
index 07eda4d1aa2..8f53caa2145 100644
--- a/static/templates/settings/admin_user_list.hbs
+++ b/static/templates/settings/admin_user_list.hbs
@@ -7,6 +7,10 @@
<td>
<span class="email">{{display_email}}</span>
</td>
+ {{else}}
+ <td>
+ <span class="hidden-email">{{t "(hidden)"}}</span>
+ </td>
{{/if}}
<td>
<span class="user_id">{{user_id}}</span>
diff --git a/static/templates/settings/deactivated_users_admin.hbs b/static/templates/settings/deactivated_users_admin.hbs
index 9b37eced115..3787a3cf568 100644
--- a/static/templates/settings/deactivated_users_admin.hbs
+++ b/static/templates/settings/deactivated_users_admin.hbs
@@ -10,9 +10,7 @@
<table class="table table-condensed table-striped wrapped-table">
<thead class="table-sticky-headers">
<th class="active" data-sort="alphabetic" data-sort-prop="full_name">{{t "Name" }}</th>
- {{#if show_email}}
<th data-sort="email">{{t "Email" }}</th>
- {{/if}}
<th class="user_id" data-sort="id">{{t "User ID" }}</th>
<th class="user_role" data-sort="role">{{t "Role" }}</th>
{{#if is_admin}}
diff --git a/static/templates/settings/user_list_admin.hbs b/static/templates/settings/user_list_admin.hbs
index 78805697c03..b9691bc3e53 100644
--- a/static/templates/settings/user_list_admin.hbs
+++ b/static/templates/settings/user_list_admin.hbs
@@ -9,9 +9,7 @@
<table class="table table-condensed table-striped wrapped-table">
<thead class="table-sticky-headers">
<th class="active" data-sort="alphabetic" data-sort-prop="full_name">{{t "Name" }}</th>
- {{#if show_email}}
<th data-sort="email">{{t "Email" }}</th>
- {{/if}}
<th class="user_id" data-sort="id">{{t "User ID" }}</th>
<th class="user_role" data-sort="role">{{t "Role" }}</th>
<th class="last_active" data-sort="last_active">{{t "Last active" }}</th>