2023-02-09 22:43:25 +01:00
|
|
|
{{! Client-side Handlebars template for rendering the trailing bookend. }}
|
2021-11-16 07:05:28 +01:00
|
|
|
<div class="{{#if is_trailing_bookend}}trailing_bookend {{/if}}bookend sub-unsub-message">
|
2021-11-04 07:11:19 +01:00
|
|
|
{{#if is_spectator}}
|
|
|
|
<span class="recent-topics-link">
|
2022-10-24 12:18:09 +02:00
|
|
|
<a href="#recent">{{t "Browse recent conversations" }}</a>
|
2021-11-04 07:11:19 +01:00
|
|
|
</span>
|
|
|
|
{{else}}
|
|
|
|
<span class="stream-status">
|
|
|
|
{{#if deactivated}}
|
|
|
|
{{t "This stream has been deactivated" }}
|
|
|
|
{{else if subscribed }}
|
2023-03-15 23:51:27 +01:00
|
|
|
{{t "You subscribed to stream {stream_name}" }}
|
2021-11-04 07:11:19 +01:00
|
|
|
{{else if just_unsubscribed }}
|
2023-03-15 23:51:27 +01:00
|
|
|
{{t "You unsubscribed from stream {stream_name}" }}
|
2021-11-04 07:11:19 +01:00
|
|
|
{{else}}
|
2023-03-15 23:51:27 +01:00
|
|
|
{{t "You are not subscribed to stream {stream_name}" }}
|
2021-11-04 07:11:19 +01:00
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
2021-11-16 03:05:40 +01:00
|
|
|
{{#if can_toggle_subscription}}
|
2017-06-04 23:19:07 +02:00
|
|
|
<div class="sub_button_row new-style">
|
2017-06-06 02:57:44 +02:00
|
|
|
<button class="button white rounded stream_sub_unsub_button {{#unless subscribed}}sea-green{{/unless}}" type="button" name="subscription">
|
2016-03-22 16:50:09 +01:00
|
|
|
{{#if subscribed}}
|
2017-06-06 01:19:47 +02:00
|
|
|
{{t 'Unsubscribe' }}
|
2016-03-22 16:50:09 +01:00
|
|
|
{{else}}
|
2017-06-06 01:19:47 +02:00
|
|
|
{{t 'Subscribe' }}
|
2016-03-22 16:50:09 +01:00
|
|
|
{{/if}}
|
2016-03-07 03:51:10 +01:00
|
|
|
</button>
|
|
|
|
</div>
|
2017-06-06 01:22:38 +02:00
|
|
|
{{/if}}
|
2014-02-05 16:55:24 +01:00
|
|
|
</div>
|