mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 00:46:03 +00:00
stream settings: Add checks to render br tags only when required.
This is required as we added `br` tags irrespective of whether there were any users in the subscribed or already subscribed category. This made the spacing here look odd. We now include br tags inside conditionals to render them only when required.
This commit is contained in:
committed by
Tim Abbott
parent
ffb811ef6e
commit
a2b50bacee
@@ -2,6 +2,7 @@
|
||||
{{message}}
|
||||
<br />
|
||||
{{/if}}
|
||||
{{#if subscribed_users}}
|
||||
{{#each subscribed_users}}
|
||||
{{#if @first}}
|
||||
{{t "Successfully subscribed users:" }}
|
||||
@@ -9,9 +10,12 @@
|
||||
<a data-user-id="{{user_id}}" class="view_user_profile">{{full_name}}</a>{{#unless @last}},{{else}}.{{/unless}}
|
||||
{{/each}}
|
||||
<br />
|
||||
{{/if}}
|
||||
{{#if already_subscribed_users}}
|
||||
{{#each already_subscribed_users}}
|
||||
{{#if @first}}
|
||||
{{t "Already subscribed users:" }}
|
||||
{{/if}}
|
||||
<a data-user-id="{{user_id}}" class="view_user_profile">{{full_name}}</a>{{#unless @last}},{{else}}.{{/unless}}
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
|
||||
Reference in New Issue
Block a user