Files
zulip/static/templates/bookend.handlebars
Kartik Maji 3d77aa49db Add subscribe button in narrowed view when stream has no messages.
A temporary message appears on successful subscription, with a button
offering to unsubscribe in case the user subscribed by accident.
2016-05-18 20:06:30 -07:00

17 lines
508 B
Handlebars

{{! Client-side Mustache template for rendering the trailing bookend.}}
{{#if bookend_content}}
<div class="{{#if trailing}}trailing_bookend{{/if}} bookend sub-unsub-message">
<span>{{bookend_content}}</span>
<div class="sub_button_row">
<button class="btn stream_sub_unsub_button btn-default" type="button" name="subscription">
{{#if subscribed}}
Unsubscribe
{{else}}
Subscribe
{{/if}}
</button>
</div>
</div>
{{/if}}