Files
zulip/static/templates/bookend.handlebars
Garvit 5f8fbc5d35 message view: Decode HTML in Stream subscription messages.
Previously, we would display effectively double-HTML-escaped content
here.

Fixes #6652.
2017-10-11 09:59:48 -07:00

19 lines
619 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>
{{#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>
{{/if}}