2012-09-18 16:18:25 +02:00
{{! Client-side Mustache template for rendering subscriptions.}}
2012-12-12 07:09:25 +01:00
{{ # 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-08-27 21:05:32 +02:00
{{ # if in vite_only }} <span class="subscription_lock"> <i class="icon-vector-lock"></i></span> {{ / if }}
2013-06-13 17:41:45 +02:00
</span>
2013-06-25 17:49:48 +02:00
<span class="sub_arrow"><i class="icon-vector-chevron-down"></i></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-07-29 19:56:23 +02:00
<p>This is
2013-08-02 20:24:10 +02:00
{{ # if in vite_only }} an <span class="icon-vector-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.
{{ else }} a <span class="icon-vector-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-08-12 21:13:07 +02:00
{{ # if _ and show_email_token subscribed }}
<div>
2013-08-26 20:22:22 +02:00
<p><b>Email address</b>: <span class="email-address"> {{ email_address }}
<i class="icon-vector-question-sign" id="email-address-hint- {{ id }} "></i></span></p>
2013-08-12 21:13:07 +02:00
</div>
{{ / if _ and }}
2013-09-10 11:45:57 +02:00
{{ # if allow_rename }}
<div class="rename-stream">
<form class="form-inline">
<input type="text" name="new-name" value="" class="input-block" />
<input type="submit" name="rename" value="Rename" class="btn btn-danger" />
</form>
</div>
{{ / if }}
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 }}