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: Use generic template to show stream icon.

Aman Agrawal12ac459379a4
diff --git a/web/templates/recipient_row.hbs b/web/templates/recipient_row.hbs
index d18dd45c011..a2e9239647a 100644
--- a/web/templates/recipient_row.hbs
+++ b/web/templates/recipient_row.hbs
@@ -6,14 +6,9 @@
style="background: {{background_color}}; border-left-color: {{background_color}};"
href="{{stream_url}}"
title="{{t 'Narrow to stream "{display_recipient}"' }}">
- {{~! Icons for invite-only/web-public streams ~}}
- {{~#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="zulip-icon zulip-icon-globe recipient-row-stream-icon" title="{{t 'This is a web-public stream' }}" aria-label="{{t 'This is a web-public stream' }}"></i>
- {{/if}}
+ <span class="stream-privacy filter-icon">
+ {{> stream_privacy}}
+ </span>
{{~! Recipient (e.g. stream/topic or topic) ~}}
{{~display_recipient~}}