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.

streams: Show "hidden" in subscriber-list when email is not accessible.

Sahil Batra46660e5daaa2
diff --git a/static/styles/subscriptions.css b/static/styles/subscriptions.css
index 064632a3496..8c7a39afda2 100644
--- a/static/styles/subscriptions.css
+++ b/static/styles/subscriptions.css
@@ -297,6 +297,10 @@
top: 0;
z-index: 1;
}
+
+ .hidden-subscriber-email {
+ font-style: italic;
+ }
}
}
}
diff --git a/static/templates/stream_settings/stream_member_list_entry.hbs b/static/templates/stream_settings/stream_member_list_entry.hbs
index 50a5b162783..36caf3e378c 100644
--- a/static/templates/stream_settings/stream_member_list_entry.hbs
+++ b/static/templates/stream_settings/stream_member_list_entry.hbs
@@ -2,6 +2,8 @@
<td class="subscriber-name">{{name}}</td>
{{#if show_email}}
<td class="subscriber-email">{{email}}</td>
+ {{else}}
+ <td class="hidden-subscriber-email">{{t "(hidden)"}}</td>
{{/if}}
<td class="subscriber-user-id">{{user_id}}</td>
{{#if displaying_for_admin}}
diff --git a/static/templates/stream_settings/stream_members.hbs b/static/templates/stream_settings/stream_members.hbs
index ae599e43896..e36898b146b 100644
--- a/static/templates/stream_settings/stream_members.hbs
+++ b/static/templates/stream_settings/stream_members.hbs
@@ -31,9 +31,7 @@
<table class="subscriber-list table table-striped">
<thead class="table-sticky-headers">
<th>{{t "Name" }}</th>
- {{#if show_email}}
<th>{{t "Email" }}</th>
- {{/if}}
<th>{{t "User ID" }}</th>
{{#if is_realm_admin}}
<th class="actions">{{t "Actions" }}</th>