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.

recipient_row: Show globe icon for web public streams.

Aman Agrawala7b2c7f7eae1
diff --git a/static/js/message_list_view.js b/static/js/message_list_view.js
index 3ac33a9be2b..76e0e7c5ace 100644
--- a/static/js/message_list_view.js
+++ b/static/js/message_list_view.js
@@ -148,6 +148,7 @@ function populate_group_from_message_container(group, message_container) {
group.background_color = stream_data.get_color(message_container.msg.stream);
group.color_class = color_class.get_css_class(group.background_color);
group.invite_only = stream_data.get_invite_only(message_container.msg.stream);
+ group.is_web_public = stream_data.is_web_public(message_container.msg.stream_id);
group.topic = message_container.msg.topic;
group.match_topic = util.get_match_topic(message_container.msg);
group.stream_url = message_container.stream_url;
diff --git a/static/templates/recipient_row.hbs b/static/templates/recipient_row.hbs
index 1713759b8f0..2415669a46a 100644
--- a/static/templates/recipient_row.hbs
+++ b/static/templates/recipient_row.hbs
@@ -11,6 +11,9 @@
{{#if invite_only}}
<i class="fa fa-lock recipient-row-stream-icon" title="{{t 'This is a private stream' }}" aria-label="{{t 'This is a private stream' }}"></i>
{{/if}}
+ {{#if is_web_public}}
+ <i class="fa fa-globe recipient-row-stream-icon" title="{{t 'This is a web public stream' }}" aria-label="{{t 'This is a web public stream' }}"></i>
+ {{/if}}
{{display_recipient}}</a>
{{! hidden narrow icon for copy-pasting }}