invite_users: Add globe icon in web public streams.

This is implemented by reusing the stream_privacy handlebars helper.

We can't use it in the public stream case, because the design of the
invite users modal uses no space between the `#` and the stream name.

Fixes part of #23496.
This commit is contained in:
SameepAher 2022-11-11 01:34:35 +05:30 committed by Tim Abbott
parent 7e4b9a3c01
commit ebd0908ae6
1 changed files with 5 additions and 4 deletions

View File

@ -10,11 +10,12 @@
<input type="checkbox" name="stream" value="{{stream_id}}"
{{#if default_stream}}checked="checked"{{/if}} />
<span></span>
{{#if invite_only}}<i class="fa fa-lock" aria-hidden="true"></i>{{/if}}
{{#if (eq name ../notifications_stream)}}
#{{name}} <i>({{t 'Receives new stream announcements' }})</i>
{{#if (or invite_only is_web_public)}} {{>stream_privacy}} {{name}}
{{else}}
{{#if (not invite_only)}}#{{/if}}{{name}}
#{{name}}
{{/if}}
{{#if (eq name ../notifications_stream)}}
<i>({{t 'Receives new stream announcements' }})</i>
{{/if}}
</label>
{{/each}}