2012-09-18 16:18:25 +02:00
|
|
|
{{! Client-side Mustache template for rendering subscriptions.}}
|
2012-12-12 07:09:25 +01:00
|
|
|
{{#each subscriptions}}
|
|
|
|
{{#with this}}
|
2013-01-04 20:42:39 +01:00
|
|
|
<tr class="subscription_row" id="subscription_{{id}}">
|
2012-11-09 22:40:34 +01:00
|
|
|
<td>
|
2013-01-23 19:10:51 +01:00
|
|
|
<div class="subscription_table_elem subscription_header" data-toggle="collapse" data-target="#subscription_settings_{{id}}">
|
2013-01-26 00:04:18 +01:00
|
|
|
<span class="color_swatch fade {{#subscribed}}in{{/subscribed}}" style="background-color: {{color}}"></span>
|
2013-01-04 21:05:18 +01:00
|
|
|
<span class="subscription_name">{{name}}</span>
|
2013-02-05 21:15:16 +01:00
|
|
|
{{#if invite_only}}<i class="icon-lock"></i>{{/if}}
|
2013-01-23 18:28:25 +01:00
|
|
|
<button class="btn sub_unsub_button {{^subscribed}}btn-primary{{/subscribed}}"
|
2013-01-23 17:41:04 +01:00
|
|
|
type="button" name="subscription">
|
|
|
|
{{#subscribed}}
|
|
|
|
Unsubscribe
|
|
|
|
{{/subscribed}}
|
|
|
|
{{^subscribed}}
|
|
|
|
Subscribe
|
|
|
|
{{/subscribed}}
|
|
|
|
</button>
|
2013-01-04 21:05:18 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="subscription_settings_{{id}}" class="collapse subscription_settings">
|
2013-01-26 00:04:18 +01:00
|
|
|
<div class="regular_subscription_settings collapse {{#subscribed}}in{{/subscribed}}">
|
2013-01-23 22:08:34 +01:00
|
|
|
<span class="sub_settings_title">Settings</span>
|
|
|
|
<ul>
|
|
|
|
<li><span class="sub_setting_control"><input class="colorpicker" type="text" value="{{color}}" /></span>
|
|
|
|
Stream color
|
|
|
|
</ul>
|
|
|
|
</div>
|
2013-01-07 22:18:47 +01:00
|
|
|
{{#render_subscribers}}
|
2013-01-23 22:08:34 +01:00
|
|
|
<div class="subscriber_list_settings">
|
2013-01-14 22:21:58 +01:00
|
|
|
<span class="sub_settings_title">Members</span>
|
2013-01-10 19:33:56 +01:00
|
|
|
<div class="subscriber_list_add">
|
|
|
|
<form class="form-inline">
|
|
|
|
<input type="text" name="principal" placeholder="Email address" value="" class="span2" />
|
|
|
|
<input type="submit" name="add_subscriber" value="Add" class="btn btn-primary" />
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-01-07 22:09:33 +01:00
|
|
|
<div class="subscriber_list_container">
|
2013-01-16 22:02:49 +01:00
|
|
|
<div class="subscriber_list_loading_indicator"></div>
|
2013-01-07 22:09:33 +01:00
|
|
|
<div class="alert alert-error hide"></div>
|
2013-01-10 19:33:56 +01:00
|
|
|
<div class="alert alert-warning hide"></div>
|
2013-01-07 22:09:33 +01:00
|
|
|
<ul>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2013-01-07 22:18:47 +01:00
|
|
|
{{/render_subscribers}}
|
2013-01-04 21:05:18 +01:00
|
|
|
</div>
|
2012-09-21 20:34:00 +02:00
|
|
|
</td>
|
2012-09-18 16:18:25 +02:00
|
|
|
</tr>
|
2012-12-12 07:09:25 +01:00
|
|
|
{{/with}}
|
|
|
|
{{/each}}
|