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-06-13 17:41:45 +02:00
<span class="subscription_block">
2013-01-04 21:05:18 +01:00
<span class="subscription_name"> {{ name }} </span>
2013-02-05 21:15:16 +01:00
{{ # if in vite_only }} <i class="icon-lock"></i> {{ / if }}
2013-06-13 17:41:45 +02:00
</span>
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-03-11 20:30:37 +01:00
<p>This is a
{{ # if in vite_only }} <span class="icon-lock"></span> <b>invite-only stream</b>. Only people who have been invited can access its content, but any member of the stream can invite others.
2013-03-13 18:50:45 +01:00
{{ else }} <span class="icon-globe"></span> <b>public stream</b>. Anybody in your organization can join. {{ / if }}
2013-03-11 20:30:37 +01:00
</p>
2013-01-23 22:08:34 +01:00
<span class="sub_settings_title">Settings</span>
<ul>
2013-04-08 20:53:12 +02:00
<li><div id="sub_setting_in_home_view" class="sub_setting_checkbox">
<input class="sub_setting_control" type="checkbox" {{ # if in _ home_view }} checked {{ / if }} />
Include in home view</div>
2013-02-12 22:32:14 +01:00
</li>
2013-04-09 02:14:13 +02:00
<li><div id="sub_setting_notifications" class="sub_setting_checkbox">
<input class="sub_setting_control" type="checkbox" {{ # if notifications }} checked {{ / if }} />
Show desktop notifications for traffic on this stream
</li>
2013-05-17 21:35:17 +02:00
<li>
<span class="sub_setting_control">
<input stream_name=" {{ name }} " class="colorpicker" type="text" value=" {{ color }} " />
</span>
2013-01-23 22:08:34 +01:00
Stream color
2013-02-12 22:32:14 +01:00
</li>
2013-01-23 22:08:34 +01:00
</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">
2013-03-05 16:45:21 +01:00
<input type="text" name="principal" placeholder="Email address" value="" class="input-block" />
2013-01-10 19:33:56 +01:00
<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 }}