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-11-08 10:12:05 +01:00
<div class="subscription_row" id="subscription_ {{ id }} ">
<div class="subscription_table_elem subscription_header collapsed" data-toggle="collapse" data-target="#subscription_settings_ {{ id }} ">
{{ # if in vite_only }}
<span class="subscription_lock"><i class="icon-vector-lock" style="color: {{ color }} "></i></span>
{{ else }}
<span class="color_swatch fade {{ # subscribed }} in {{ / subscribed }} " style="background-color: {{ color }} "></span>
{{ / if }}
2013-06-13 17:41:45 +02:00
<span class="subscription_block">
2013-11-08 10:12:05 +01:00
<span class="subscription_name subscription-name-row"> {{ name }} </span>
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-11-08 10:12:05 +01:00
<button class="zulip-button sub_unsub_button {{ ^ subscribed }} gray-button {{ / subscribed }} {{ # subscribed }} green-button subscribed-button {{ / subscribed }} "
2013-01-23 17:41:04 +01:00
type="button" name="subscription">
{{ # subscribed }}
2013-11-08 10:12:05 +01:00
Subscribed
2013-01-23 17:41:04 +01:00
{{ / 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-11-08 10:12:05 +01:00
<div class="subscription-type">
This is
{{ # 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.
2013-08-02 20:24:10 +02:00
{{ else }} a <span class="icon-vector-globe"></span> <b>public stream</b>. Anybody in your organization can join. {{ / if }}
2013-11-08 10:12:05 +01:00
</div>
<div class="subscription-config">
2013-01-23 22:08:34 +01:00
<ul>
2013-10-09 14:50:44 +02:00
<li>
2013-11-04 04:30:19 +01:00
<div id="sub_setting_not_in_home_view" class="sub_setting_checkbox">
2013-11-08 10:12:05 +01:00
<input id="mutestream- {{ id }} " class="sub_setting_control" type="checkbox" {{ # unless in _ home_view }} checked {{ / unless }} />
<label class="subscription-control-label">Mute stream</label>
2013-10-09 14:50:44 +02:00
</div>
2013-02-12 22:32:14 +01:00
</li>
2013-10-09 14:50:44 +02:00
<li>
<div id="sub_setting_notifications" class="sub_setting_checkbox">
2013-11-08 10:12:05 +01:00
<input id="notifystream- {{ id }} " class="sub_setting_control" type="checkbox" {{ # if notifications }} checked {{ / if }} />
<label class="subscription-control-label">Show desktop notifications<br/>for traffic on this stream</label>
2013-10-09 14:50:44 +02:00
</div>
2013-04-09 02:14:13 +02:00
</li>
2013-05-17 21:35:17 +02:00
<li>
<span class="sub_setting_control">
2013-11-08 10:12:05 +01:00
<input stream_name=" {{ name }} " class="colorpicker" id="streamcolor" type="text" value=" {{ color }} " />
2013-05-17 21:35:17 +02:00
</span>
2013-11-08 10:12:05 +01:00
<label for="streamcolor" class="subscription-control-label">Stream color</label>
2013-02-12 22:32:14 +01:00
</li>
2013-01-23 22:08:34 +01:00
</ul>
2013-11-08 10:12:05 +01:00
</div>
2013-01-23 22:08:34 +01:00
</div>
2013-11-12 16:19:38 +01:00
{{ # if _ and subscribed email_address }}
2013-11-08 10:12:05 +01:00
<div class="stream-email-box">
<span class="sub_settings_title">Email address <i class="icon-vector-question-sign stream-email-hint" id="email-address-hint- {{ id }} "></i></span>
<div class="stream-email">
<span class="email-address"> {{ email_address }} </span>
</div>
2013-08-12 21:13:07 +02:00
</div>
2013-11-12 16:19:38 +01:00
{{ / if _ and }}
2013-09-10 11:45:57 +02:00
{{ # if allow_rename }}
<div class="rename-stream">
2013-09-24 17:22:51 +02:00
<span class="sub_settings_title">Administrator settings</span>
2013-09-10 11:45:57 +02:00
<form class="form-inline">
2013-11-08 10:12:05 +01:00
<input type="text" name="new-name" value="" class="input-block new-stream-name" />
<input type="submit" name="rename" value="Rename stream" class="zulip-button red-button stream-rename-button" />
2013-09-10 11:45:57 +02:00
</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-11-08 10:12:05 +01:00
<span class="sub_settings_title">Stream membership</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-11-08 10:12:05 +01:00
<input type="submit" name="add_subscriber" value="Add" class="zulip-button blue-button add-subscriber-button" />
2013-01-10 19:33:56 +01:00
</form>
</div>
</div>
2013-11-08 10:12:05 +01:00
<div class="subscriber-list-box">
<div class="subscriber_list_container">
<div class="subscriber_list_loading_indicator"></div>
<div class="alert alert-error hide"></div>
<div class="alert alert-warning hide"></div>
<table class="subscriber-list">
</table>
</div>
2013-01-07 22:09:33 +01:00
</div>
2013-01-07 22:18:47 +01:00
{{ / render_subscribers }}
2013-01-04 21:05:18 +01:00
</div>
2013-11-08 10:12:05 +01:00
</div>
2012-12-12 07:09:25 +01:00
{{ / with }}