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.

edit streams: Show "(you)" next to your name.

Steve Howell79b9759c0b24
diff --git a/static/js/stream_edit_subscribers.js b/static/js/stream_edit_subscribers.js
index a2e14d3b591..426949d108f 100644
--- a/static/js/stream_edit_subscribers.js
+++ b/static/js/stream_edit_subscribers.js
@@ -27,6 +27,7 @@ function format_member_list_elem(person) {
return render_stream_member_list_entry({
name: person.full_name,
user_id: person.user_id,
+ is_current_user: person.user_id === page_params.user_id,
email: settings_data.email_for_user_settings(person),
displaying_for_admin: page_params.is_admin,
show_email: settings_data.show_email(),
diff --git a/static/templates/stream_settings/stream_member_list_entry.hbs b/static/templates/stream_settings/stream_member_list_entry.hbs
index 36caf3e378c..1efce313190 100644
--- a/static/templates/stream_settings/stream_member_list_entry.hbs
+++ b/static/templates/stream_settings/stream_member_list_entry.hbs
@@ -1,5 +1,7 @@
<tr data-subscriber-id="{{user_id}}">
- <td class="subscriber-name">{{name}}</td>
+ <td class="subscriber-name">
+ {{name}}{{#if is_current_user}} <span class="my_user_status">{{t "(you)"}}</span>{{/if}}
+ </td>
{{#if show_email}}
<td class="subscriber-email">{{email}}</td>
{{else}}