From ebd0908ae6b22f3e11b23451ab0017638327d28b Mon Sep 17 00:00:00 2001 From: SameepAher Date: Fri, 11 Nov 2022 01:34:35 +0530 Subject: [PATCH] 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. --- static/templates/invite_subscription.hbs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/static/templates/invite_subscription.hbs b/static/templates/invite_subscription.hbs index 91f5716a93..f80d89f6e6 100644 --- a/static/templates/invite_subscription.hbs +++ b/static/templates/invite_subscription.hbs @@ -10,11 +10,12 @@ - {{#if invite_only}}{{/if}} - {{#if (eq name ../notifications_stream)}} - #{{name}} ({{t 'Receives new stream announcements' }}) + {{#if (or invite_only is_web_public)}} {{>stream_privacy}} {{name}} {{else}} - {{#if (not invite_only)}}#{{/if}}{{name}} + #{{name}} + {{/if}} + {{#if (eq name ../notifications_stream)}} + ({{t 'Receives new stream announcements' }}) {{/if}} {{/each}}