recipient_row: Use generic template to show stream icon.

stream_privacy template has conditions to show stream privacy icon
for all the cases, so we use it here since we also want to show
`#` icon for public streams.
This commit is contained in:
Aman Agrawal 2023-04-07 19:42:03 +00:00 committed by Tim Abbott
parent 17a4140773
commit 12ac459379
1 changed files with 3 additions and 8 deletions

View File

@ -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~}}