2016-10-28 02:44:40 +02:00
{{ # with this }}
<div class="subscription_settings" data-stream-id=" {{ stream_id }} " data-stream-name=" {{ name }} ">
<div class="inner-box">
<div class="stream-header">
{{ # if in vite_only }}
<div class="large-icon lock" style="color: {{ color }} ">
<i class="icon-vector-lock"></i>
</div>
{{ else }}
<div class="large-icon hash" style="color: {{ color }} "></div>
{{ / if }}
<div class="stream-name">
2016-12-17 03:53:12 +01:00
<span class="stream-name-editable editable-section"> {{ name }} </span>
{{ # if is_admin }}
<span class="editable" data-make-editable=".stream-name-editable"></span>
<span class="checkmark" data-finish-editing=".stream-name-editable">✓</span>
{{ / if }}
2016-10-28 02:44:40 +02:00
</div>
2017-01-27 00:40:42 +01:00
<button class="button small white rounded subscribe-button sub_unsub_button {{ # unless subscribed }} unsubscribed {{ / unless }} " type="button" name="button">
{{ # if subscribed }} Unsubscribe {{ else }} Subscribe {{ / if }} </button>
2016-10-28 02:44:40 +02:00
</div>
2016-12-17 03:44:15 +01:00
<div class="stream-description" data-no-description=" {{ t 'No description.' }} ">
<span class="stream-description-editable editable-section"> {{ description }} </span>
{{ # if is_admin }}
<span class="editable" data-make-editable=".stream-description-editable"></span>
<span class="checkmark" data-finish-editing=".stream-description-editable">✓</span>
{{ / if }}
</div>
2016-10-28 06:52:17 +02:00
<div class="regular_subscription_settings collapse {{ # subscribed }} in {{ / subscribed }} ">
<div class="subscription-type">
2017-02-24 00:46:42 +01:00
<div class="subscription-type-text">
{{ partial "subscription_type" }}
</div>
{{ # if is_admin }}
<a class="change-stream-privacy" data-is-private=" {{ # if can_make_public }} true {{ else }} false {{ / if }} "> {{ t "[Change]" }} </a>
{{ / if }}
2016-10-28 06:52:17 +02:00
</div>
<div class="subscription-config">
<ul>
<li>
<div id="sub_setting_not_in_home_view" class="sub_setting_checkbox sub-mute-setting">
<input id="mutestream- {{ stream_id }} " class="sub_setting_control" type="checkbox" tabindex="-1" {{ # unless in _ home_view }} checked {{ / unless }} />
<label class="subscription-control-label">Mute stream</label>
<p class="mute-note {{ # if in _ home_view }} hide-mute-note {{ / if }} "> {{ t "Muted streams don't show up in your home view or generate notifications unless you are mentioned." }} </p>
</div>
</li>
<li>
<div id="sub_desktop_notifications_setting"
class="sub_setting_checkbox sub_notification_setting {{ # unless in _ home_view }} muted-sub {{ / unless }} ">
<input id="desktop-notifystream- {{ stream_id }} " class="sub_setting_control" type="checkbox" tabindex="-1" {{ # if desktop_notifications }} checked {{ / if }} {{ # unless in _ home_view }} disabled="disabled" {{ / unless }} />
2016-10-28 02:44:40 +02:00
<label class="subscription-control-label"> {{ t "Receive desktop notifications" }} </label>
2016-10-28 06:52:17 +02:00
</div>
2016-10-31 21:41:57 +01:00
</li>
<li>
2016-10-28 06:52:17 +02:00
<div id="sub_audible_notifications_setting"
class="sub_setting_checkbox sub_notification_setting {{ # unless in _ home_view }} muted-sub {{ / unless }} ">
<input id="audible-notifystream- {{ stream_id }} " class="sub_setting_control" type="checkbox" tabindex="-1" {{ # if audible_notifications }} checked {{ / if }} {{ # unless in _ home_view }} disabled="disabled" {{ / unless }} />
2016-10-28 02:44:40 +02:00
<label class="subscription-control-label"> {{ t "Receive audible notifications" }} </label>
2016-10-28 06:52:17 +02:00
</div>
</li>
<li>
<div id="sub_pin_setting" class="sub_setting_checkbox">
<input id="pinstream- {{ stream_id }} " class="sub_setting_control" type="checkbox" tabindex="-1" {{ # if pin_to_top }} checked {{ / if }} />
2016-10-28 02:44:40 +02:00
<label class="subscription-control-label"> {{ t "Pin stream to top of left sidebar" }} </label>
2016-10-28 06:52:17 +02:00
</div>
</li>
<li>
2016-10-28 02:44:40 +02:00
<label for="streamcolor" class="subscription-control-label"> {{ t "Stream color" }} </label>
2016-10-28 06:52:17 +02:00
<span class="sub_setting_control">
2016-11-05 00:24:55 +01:00
<input stream_id=" {{ stream_id }} " class="colorpicker" id="streamcolor" type="text" value=" {{ color }} " tabindex="-1" />
2016-10-28 06:52:17 +02:00
</span>
</li>
</ul>
</div>
</div>
{{ # if _ and subscribed email_address }}
<div class="stream-email-box">
2016-10-31 20:48:25 +01:00
<div class="sub_settings_title">Email address <i class="icon-vector-question-sign stream-email-hint" id="email-address-hint- {{ stream_id }} "></i></div>
2016-10-28 06:52:17 +02:00
<div class="stream-email">
<span class="email-address"> {{ email_address }} </span>
</div>
</div>
{{ / if _ and }}
{{ # render_subscribers }}
<div class="subscriber_list_settings">
2016-10-31 20:48:25 +01:00
<div class="sub_settings_title"> {{ t "Stream membership" }} </div>
2016-10-28 06:52:17 +02:00
<div class="subscriber_list_add">
<form class="form-inline">
<input type="text" name="principal" placeholder=" {{ t 'Email address' }} " value="" class="input-block" autocomplete="off" tabindex="-1" />
<input type="submit" name="add_subscriber" value=" {{ t 'Add' }} " class="btn btn-primary add-subscriber-button" tabindex="-1 "/>
</form>
</div>
</div>
<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>
</div>
{{ / render_subscribers }}
2016-10-28 02:44:40 +02:00
</div>
2016-10-28 06:52:17 +02:00
</div>
2016-10-28 02:44:40 +02:00
{{ / with }}