zulip/zephyr/jstemplates/subscription.html
Waseem Daher 7de057dcb0 Remove unescaped use of stream name in subscriptions page.
This was causing issues with our ability to unsubscribe from
streams with " in their names.

The solution here is a bit hacky, since it depends on the JavaScript
being fairly aware of the layout of the DOM, which is not great.
But it works.

This fixes Trac #328.

(imported from commit a1b6c8e1f3a9daacdc48920a195717aa89b3a9a9)
2012-12-13 15:46:30 -05:00

16 lines
452 B
HTML

{{! Client-side Mustache template for rendering subscriptions.}}
{{#each subscriptions}}
{{#with this}}
<tr>
<td>
<input class="colorpicker" type="text" value="{{color}}" />
<span class="subscription_name">{{subscription}}</span>
</td>
<td class="span2">
<button class="btn btn-block" type="button" name="subscription"
onclick="subs.unsubscribe_button_click(event);">Unsubscribe</button>
</td>
</tr>
{{/with}}
{{/each}}