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}}
|
2014-02-07 16:55:54 +01:00
|
|
|
<div class="subscription_row" id="subscription_{{stream_id}}" data-subscription-id="{{stream_id}}">
|
|
|
|
<div class="subscription_table_elem subscription_header collapsed" data-toggle="collapse" data-target="#subscription_settings_{{stream_id}}">
|
2014-01-03 23:11:11 +01:00
|
|
|
<span class="subscription-setting-icon">
|
|
|
|
{{partial "subscription_setting_icon"}}
|
|
|
|
</span>
|
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>
|
2014-01-24 20:40:06 +01:00
|
|
|
<span class="subscription_description subscription-description-row">{{description}}</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>
|
|
|
|
|
2014-02-07 16:55:54 +01:00
|
|
|
<div id="subscription_settings_{{stream_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">
|
2014-01-03 18:06:55 +01:00
|
|
|
{{partial "subscription_type"}}
|
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">
|
2014-02-07 16:55:54 +01:00
|
|
|
<input id="mutestream-{{stream_id}}" class="sub_setting_control" type="checkbox" tabindex="-1" {{#unless in_home_view}}checked{{/unless}} />
|
2013-11-08 10:12:05 +01:00
|
|
|
<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">
|
2014-02-07 16:55:54 +01:00
|
|
|
<input id="notifystream-{{stream_id}}" class="sub_setting_control" type="checkbox" tabindex="-1" {{#if notifications}}checked{{/if}} />
|
2013-11-08 10:12:05 +01:00
|
|
|
<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">
|
2014-01-07 18:18:27 +01:00
|
|
|
<input stream_name="{{name}}" class="colorpicker" id="streamcolor" type="text" value="{{color}}" tabindex="-1" />
|
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">
|
2014-02-07 16:55:54 +01:00
|
|
|
<span class="sub_settings_title">Email address <i class="icon-vector-question-sign stream-email-hint" id="email-address-hint-{{stream_id}}"></i></span>
|
2013-11-08 10:12:05 +01:00
|
|
|
<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
|
|
|
|
2014-01-03 15:31:19 +01:00
|
|
|
{{#if is_admin}}
|
2014-01-24 20:25:53 +01:00
|
|
|
<div class="admin-settings">
|
|
|
|
<span class="sub_settings_title">Administrator settings</span>
|
|
|
|
<div class="rename-stream">
|
|
|
|
<form class="form-inline">
|
|
|
|
<input type="text" name="new-name" value="" class="input-block new-stream-name" tabindex="-1" />
|
|
|
|
<input type="submit" name="rename" value="Rename stream" class="zulip-button red-button stream-rename-button" tabindex="-1" />
|
|
|
|
</form>
|
|
|
|
</div>
|
2014-01-24 20:40:06 +01:00
|
|
|
<div class="change-stream-description">
|
|
|
|
<form class="form-inline">
|
|
|
|
<input type="hidden" name="stream_name" value="{{name}}" />
|
|
|
|
<input type="text" name="description" value="{{description}}" class="input-block description" tabindex="-1" />
|
|
|
|
<input type="submit" name="change-stream-description" value="Change stream description" class="zulip-button red-button change-stream-description-button" tabindex="-1" />
|
|
|
|
</form>
|
|
|
|
</div>
|
2014-01-24 20:25:53 +01:00
|
|
|
<div class="change-stream-privacy">
|
|
|
|
{{partial "change_stream_privacy"}}
|
|
|
|
</div>
|
2014-01-03 20:35:52 +01:00
|
|
|
</div>
|
2013-09-10 11:45:57 +02:00
|
|
|
{{/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">
|
2014-01-07 18:18:27 +01:00
|
|
|
<input type="text" name="principal" placeholder="Email address" value="" class="input-block" tabindex="-1" />
|
|
|
|
<input type="submit" name="add_subscriber" value="Add" class="zulip-button blue-button add-subscriber-button" tabindex="-1 "/>
|
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}}
|