2016-10-28 02:44:40 +02:00
{{ # with this }}
2017-03-05 04:20:23 +01:00
<div class="subscription_settings" data-stream-id=" {{ stream_id }} ">
2017-04-15 04:20:32 +02:00
<div class="inner-box">
2018-01-03 14:24:49 +01:00
<div class="alert stream_change_property_info"></div>
2017-04-15 04:20:32 +02:00
<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">
<span class="stream-name-editable editable-section"> {{ name }} </span>
2018-01-03 16:39:02 +01:00
{{ # if can_change_name_description }}
2017-04-15 04:20:32 +02:00
<span class="editable" data-make-editable=".stream-name-editable"></span>
<span class="checkmark" data-finish-editing=".stream-name-editable">✓</span>
{{ / if }}
</div>
2017-12-13 21:37:40 +01:00
<div class="button-group">
2018-02-13 11:47:17 +01:00
{{ # if is_admin }}
<button class="button small rounded btn-danger deactivate" type="button" name="delete_button" title=" {{ t 'Delete stream' }} "> {{ t 'Delete' }} <i class="icon-vector-trash" aria-hidden="true"></i></button>
{{ / if }}
2018-03-11 17:51:21 +01:00
<button class="button small rounded subscribe-button sub_unsub_button {{ # unless subscribed }} unsubscribed {{ / unless }} " type="button" name="button" title=" {{ t 'Toggle subscription' }} (S)" {{ # unless should_display_subscription_button }} style="display: none" {{ / unless }} >
2017-12-13 21:37:40 +01:00
{{ # if subscribed }} {{ # tr oneself }} Unsubscribe {{ / tr }} {{ else }} {{ # tr oneself }} Subscribe {{ / tr }} {{ / if }} </button>
2018-02-06 09:42:41 +01:00
{{ # if in vite_only }}
{{ # if subscribed }}
<a href=" {{ preview_url }} " class="button small rounded" id="preview-stream-button" role="button" title=" {{ t 'View stream' }} (V)"> {{ t "View stream" }} </a>
{{ else }}
{{ # if previously_subscribed }}
<a href=" {{ preview_url }} " class="button small rounded" id="preview-stream-button" role="button" title=" {{ t 'View stream' }} (V)"> {{ t "View stream" }} </a>
{{ / if }}
{{ / if }}
{{ else }}
<a href=" {{ preview_url }} " class="button small rounded" id="preview-stream-button" role="button" title=" {{ t 'View stream' }} (V)"> {{ t "View stream" }} </a>
{{ / if }}
2017-12-13 21:37:40 +01:00
</div>
2016-10-28 06:52:17 +02:00
</div>
2018-02-09 16:12:35 +01:00
<div class="stream-description">
<span class="stream-description-editable editable-section description" data-no-description=" {{ t 'No description.' }} "> {{{ rendered_description }}} </span>
2018-01-03 16:39:02 +01:00
{{ # if can_change_name_description }}
2017-04-15 04:20:32 +02:00
<span class="editable" data-make-editable=".stream-description-editable"></span>
<span class="checkmark" data-finish-editing=".stream-description-editable">✓</span>
{{ / if }}
2016-10-28 06:52:17 +02:00
</div>
2018-01-06 12:29:55 +01:00
<div class="subscription-type">
<div class="subscription-type-text">
{{ partial "subscription_type" }}
2017-04-15 04:20:32 +02:00
</div>
2018-01-06 12:29:55 +01:00
{{ # if can_change_subscription_type }}
<a class="change-stream-privacy" data-is-private=" {{ # if can_make_public }} true {{ else }} false {{ / if }} ">[ {{ t "Change" }} ]</a>
{{ / if }}
</div>
<div class="regular_subscription_settings collapse {{ # subscribed }} in {{ / subscribed }} ">
2017-04-15 04:20:32 +02:00
<div class="subscription-config">
2017-08-08 19:13:05 +02:00
<ul class="grey-box">
2017-04-15 04:20:32 +02:00
<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"> {{ t "Mute stream" }} </label>
2018-01-04 17:38:31 +01:00
<p class="mute-note {{ # if in _ home_view }} hide-mute-note {{ / if }} "> {{ t "Muted streams don't show up in \"All messages\" or generate notifications unless you are mentioned." }} </p>
2017-04-15 04:20:32 +02:00
</div>
</li>
<li>
<div id="sub_desktop_notifications_setting"
2018-04-05 08:38:46 +02:00
class="sub_setting_checkbox sub_notification_setting {{ # unless in _ home_view }} muted-sub {{ / unless }} ">
2017-04-15 04:20:32 +02:00
<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 }} />
2017-12-02 05:12:31 +01:00
<label class="subscription-control-label"> {{ t "Visual desktop notifications" }} </label>
2017-04-15 04:20:32 +02:00
</div>
</li>
<li>
<div id="sub_audible_notifications_setting"
2018-04-05 08:38:46 +02:00
class="sub_setting_checkbox sub_notification_setting {{ # unless in _ home_view }} muted-sub {{ / unless }} ">
2017-04-15 04:20:32 +02:00
<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 }} />
2017-12-02 05:12:31 +01:00
<label class="subscription-control-label"> {{ t "Audible desktop notifications" }} </label>
2017-04-15 04:20:32 +02:00
</div>
2017-08-17 16:55:32 +02:00
</li>
<li>
<div id="sub_push_notifications_setting"
2018-04-05 08:38:46 +02:00
class="sub_setting_checkbox sub_notification_setting {{ # unless in _ home_view }} muted-sub {{ / unless }} ">
2017-08-17 16:55:32 +02:00
<input id="push-notifystream- {{ stream_id }} " class="sub_setting_control" type="checkbox" tabindex="-1" {{ # if push_notifications }} checked {{ / if }} {{ # unless in _ home_view }} disabled="disabled" {{ / unless }} />
2017-12-02 05:12:31 +01:00
<label class="subscription-control-label"> {{ t "Mobile notifications" }} </label>
2017-08-17 16:55:32 +02:00
</div>
2017-04-15 04:20:32 +02:00
</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 }} />
<label class="subscription-control-label"> {{ t "Pin stream to top of left sidebar" }} </label>
</div>
</li>
<li>
<label for="streamcolor" class="subscription-control-label"> {{ t "Stream color" }} </label>
<span class="sub_setting_control">
<input stream_id=" {{ stream_id }} " class="colorpicker" id="streamcolor" type="text" value=" {{ color }} " tabindex="-1" />
</span>
</li>
</ul>
</div>
2018-04-05 19:58:27 +02:00
<div class="stream-email-box" {{ # unless email_address }} style="display: none;" {{ / unless }} >
2018-03-24 19:35:47 +01:00
<div class="sub_settings_title"> {{ t "Email address" }} <i class="icon-vector-question-sign stream-email-hint"></i></div>
2017-04-15 04:20:32 +02:00
<div class="stream-email">
<span class="email-address"> {{ email_address }} </span>
</div>
</div>
2016-10-28 06:52:17 +02:00
</div>
2018-02-09 20:05:56 +01:00
<div class="subscription-members-setting">
{{ partial "subscription_members" }}
</div>
2016-10-28 06:52:17 +02:00
</div>
</div>
2016-10-28 02:44:40 +02:00
{{ / with }}