2019-06-14 14:42:48 +02:00
|
|
|
<div class="subscription_settings" data-stream-id="{{sub.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>
|
2020-05-24 14:24:23 +02:00
|
|
|
|
2019-06-14 14:42:48 +02:00
|
|
|
{{#with sub}}
|
2017-04-15 04:20:32 +02:00
|
|
|
<div class="stream-header">
|
2020-03-28 06:26:38 +01:00
|
|
|
{{> subscription_privacy
|
|
|
|
invite_only=invite_only
|
|
|
|
is_web_public=is_web_public }}
|
2017-04-15 04:20:32 +02:00
|
|
|
<div class="stream-name">
|
2019-10-03 17:45:46 +02:00
|
|
|
<span title="{{name}}" 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">
|
2020-08-15 21:04:05 +02:00
|
|
|
{{#if is_realm_admin}}
|
2018-09-17 11:42:07 +02:00
|
|
|
<button class="button small rounded btn-danger deactivate" type="button" name="delete_button" title="{{t 'Delete stream'}}"> <i class="fa fa-trash-o" aria-hidden="true"></i></button>
|
2018-02-13 11:47:17 +01:00
|
|
|
{{/if}}
|
2019-05-06 14:35:57 +02:00
|
|
|
<div class="sub_unsub_button_wrapper inline-block">
|
|
|
|
<button class="button small rounded subscribe-button sub_unsub_button {{#unless subscribed }}unsubscribed{{/unless}}" type="button" name="button" {{#if should_display_subscription_button}}title="{{t 'Toggle subscription'}} (S)" {{else}}disabled="disabled"{{/if}}>
|
|
|
|
{{#if subscribed }}{{#tr oneself }}Unsubscribe{{/tr}}{{else}}{{#tr oneself }}Subscribe{{/tr}}{{/if}}</button>
|
|
|
|
</div>
|
2020-11-03 07:00:53 +01:00
|
|
|
<a href="{{preview_url}}" class="button small rounded" id="preview-stream-button" role="button" title="{{t 'View stream'}} (V)" {{#unless should_display_preview_button }}style="display: none"{{/unless}}>
|
|
|
|
<i class="fa fa-eye"></i>
|
|
|
|
</a>
|
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">
|
2020-02-28 23:59:07 +01:00
|
|
|
<span class="stream-description-editable editable-section description rendered_markdown" data-no-description="{{t 'No description.' }}">{{rendered_markdown 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">
|
2020-02-04 21:50:55 +01:00
|
|
|
{{> subscription_type
|
2020-06-16 13:59:02 +02:00
|
|
|
stream_post_policy_values=../stream_post_policy_values
|
|
|
|
message_retention_text=../message_retention_text}}
|
2017-04-15 04:20:32 +02:00
|
|
|
</div>
|
2018-06-01 15:37:21 +02:00
|
|
|
<a class="change-stream-privacy" {{#unless can_change_stream_permissions}}style="display: none;"{{/unless}}>[{{t "Change" }}]</a>
|
2018-01-06 12:29:55 +01:00
|
|
|
</div>
|
2019-06-14 14:42:48 +02:00
|
|
|
{{/with}}
|
2020-05-24 14:24:23 +02:00
|
|
|
|
2019-06-14 14:42:48 +02:00
|
|
|
<div class="regular_subscription_settings collapse {{#sub.subscribed}}in{{/sub.subscribed}}">
|
2020-05-24 14:24:23 +02:00
|
|
|
<div id="personal_settings_label_container">
|
|
|
|
<label class="sub_settings_title inline-block">
|
|
|
|
{{t "Personal settings" }}
|
|
|
|
</label>
|
|
|
|
<div id="stream_change_property_status{{sub.stream_id}}" class="alert-notification"></div>
|
|
|
|
</div>
|
2017-04-15 04:20:32 +02:00
|
|
|
<div class="subscription-config">
|
2017-08-08 19:13:05 +02:00
|
|
|
<ul class="grey-box">
|
2019-06-14 14:42:48 +02:00
|
|
|
{{#each settings}}
|
2017-04-15 04:20:32 +02:00
|
|
|
<li>
|
2019-07-11 04:05:28 +02:00
|
|
|
{{> stream_settings_checkbox
|
|
|
|
setting_name=name
|
2020-01-27 18:42:35 +01:00
|
|
|
is_checked=is_checked
|
2019-07-11 04:05:28 +02:00
|
|
|
is_muted=(lookup ../sub "is_muted")
|
|
|
|
stream_id=(lookup ../sub "stream_id")
|
|
|
|
notification_setting=is_notification_setting
|
2020-01-27 18:54:44 +01:00
|
|
|
disabled_realm_setting=disabled_realm_setting
|
2020-01-27 18:50:49 +01:00
|
|
|
is_disabled=is_disabled
|
2019-07-11 04:05:28 +02:00
|
|
|
label=label}}
|
2017-04-15 04:20:32 +02:00
|
|
|
</li>
|
2019-06-14 14:42:48 +02:00
|
|
|
{{/each}}
|
2017-04-15 04:20:32 +02:00
|
|
|
<li>
|
|
|
|
<label for="streamcolor" class="subscription-control-label">{{t "Stream color" }}</label>
|
|
|
|
<span class="sub_setting_control">
|
2019-06-14 14:42:48 +02:00
|
|
|
<input stream_id="{{sub.stream_id}}" class="colorpicker" id="streamcolor" type="text" value="{{sub.color}}" tabindex="-1" />
|
2017-04-15 04:20:32 +02:00
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2020-05-16 17:53:50 +02:00
|
|
|
</div>
|
|
|
|
<div class="stream-email-box" {{#unless sub.email_address}}style="display: none;"{{/unless}}>
|
|
|
|
<label class="sub_settings_title">
|
|
|
|
{{t "Email address" }}
|
|
|
|
{{> help_link_widget link="/help/message-a-stream-by-email" }}
|
|
|
|
</label>
|
|
|
|
<div class="stream-email">
|
|
|
|
<span class="email-address">{{sub.email_address}}</span>
|
2017-04-15 04:20:32 +02:00
|
|
|
</div>
|
2016-10-28 06:52:17 +02:00
|
|
|
</div>
|
2019-06-14 14:42:48 +02:00
|
|
|
{{#with sub}}
|
2018-02-09 20:05:56 +01:00
|
|
|
<div class="subscription-members-setting">
|
2019-07-11 04:05:28 +02:00
|
|
|
{{> subscription_members}}
|
2018-02-09 20:05:56 +01:00
|
|
|
</div>
|
2019-06-14 14:42:48 +02:00
|
|
|
{{/with}}
|
2016-10-28 06:52:17 +02:00
|
|
|
</div>
|
|
|
|
</div>
|