zulip/static/templates/bookend.hbs

32 lines
1.2 KiB
Handlebars

{{! Client-side Mustache template for rendering the trailing bookend.}}
<div class="{{#if trailing}}trailing_bookend{{/if}} bookend sub-unsub-message">
{{#if is_spectator}}
<span class="recent-topics-link">
<a href="#recent_topics">{{t "Browse recent topics" }}</a>
</span>
{{else}}
<span class="stream-status">
{{#if deactivated}}
{{t "This stream has been deactivated" }}
{{else if subscribed }}
{{#tr}}You subscribed to stream {stream_name}{{/tr}}
{{else if just_unsubscribed }}
{{#tr}}You unsubscribed from stream {stream_name}{{/tr}}
{{else}}
{{#tr}}You are not subscribed to stream {stream_name}{{/tr}}
{{/if}}
</span>
{{/if}}
{{#if trailing}}
<div class="sub_button_row new-style">
<button class="button white rounded stream_sub_unsub_button {{#unless subscribed}}sea-green{{/unless}}" type="button" name="subscription">
{{#if subscribed}}
{{t 'Unsubscribe' }}
{{else}}
{{t 'Subscribe' }}
{{/if}}
</button>
</div>
{{/if}}
</div>