mirror of
https://github.com/zulip/zulip.git
synced 2026-06-21 21:32:29 +08:00
This commits add data-stream-id attribute to the compose_invite_users template. This helps in avoiding the error that occured if user clicked the link after renaming of stream. As a result of above changes, the checks for empty and invalid stream name in compose box are done in warn_if_mentioning_unsubscribed_user function instead of needs_subscribe_warning function.
11 lines
662 B
Handlebars
11 lines
662 B
Handlebars
<div class="compose_invite_user" data-user-id="{{user_id}}" data-stream-id="{{stream_id}}">
|
|
{{#if can_subscribe_other_users}}
|
|
<p>{{#tr this}}<strong>__name__</strong> is not subscribed to this stream. They will not be notified unless you subscribe them.{{/tr}}</p>
|
|
<div class="compose_invite_user_controls">
|
|
<button class="btn btn-warning compose_invite_link" >{{t "Subscribe" }}</button><button type="button" class="compose_invite_close close">×</button>
|
|
</div>
|
|
{{else}}
|
|
<p>{{#tr this}}<strong>__name__</strong> is not subscribed to this stream. They will not be notified if you mention them.{{/tr}}</p>
|
|
{{/if}}
|
|
</div>
|