2021-06-26 15:28:24 +02:00
|
|
|
<div class="stream_settings_header" data-stream-id="{{sub.stream_id}}">
|
|
|
|
<div class="tab-container"></div>
|
|
|
|
{{#with sub}}
|
|
|
|
<div class="button-group">
|
|
|
|
<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}}Unsubscribe{{/tr}}{{else}}{{#tr}}Subscribe{{/tr}}{{/if}}</button>
|
|
|
|
</div>
|
|
|
|
<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>
|
|
|
|
{{#if is_realm_admin}}
|
|
|
|
<button class="button small rounded btn-danger deactivate" type="button" name="delete_button" title="{{t 'Archive stream'}}"> <i class="fa fa-trash-o" aria-hidden="true"></i></button>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
{{/with}}
|
|
|
|
</div>
|
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">
|
2020-05-24 14:24:23 +02:00
|
|
|
|
2021-06-26 15:28:24 +02:00
|
|
|
<div class="general_settings stream_section">
|
2021-07-01 11:34:18 +02:00
|
|
|
{{#with sub}}
|
|
|
|
<div class="stream-header">
|
2021-07-18 13:49:31 +02:00
|
|
|
{{> stream_privacy_icon
|
2021-07-01 11:34:18 +02:00
|
|
|
invite_only=invite_only
|
|
|
|
is_web_public=is_web_public }}
|
|
|
|
<div class="stream-name">
|
|
|
|
<span class="sub-stream-name" title="{{name}}">{{name}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="stream_change_property_info alert-notification"></div>
|
|
|
|
<div class="button-group">
|
|
|
|
<button id="open_stream_info_modal" class="button rounded small btn-warning" title="{{t 'Change stream info' }}">
|
|
|
|
<i class="fa fa-pencil" aria-hidden="true"></i>
|
|
|
|
</button>
|
2019-05-06 14:35:57 +02:00
|
|
|
</div>
|
2017-12-13 21:37:40 +01:00
|
|
|
</div>
|
2021-07-01 11:34:18 +02:00
|
|
|
<div class="stream-description">
|
2021-07-18 13:49:31 +02:00
|
|
|
{{> stream_description
|
2021-07-08 23:21:47 +02:00
|
|
|
rendered_description=rendered_description
|
|
|
|
}}
|
2021-07-01 11:34:18 +02:00
|
|
|
</div>
|
2021-07-08 12:30:34 +02:00
|
|
|
<div class="stream_setting_subsection_header">
|
|
|
|
<h3 class="stream_setting_subsection_title">
|
|
|
|
{{t "Stream permissions" }}
|
|
|
|
</h3>
|
|
|
|
{{#if can_change_stream_permissions}}
|
2021-07-08 22:15:28 +02:00
|
|
|
<div class="stream_permission_change_info alert-notification"></div>
|
2021-07-08 12:30:34 +02:00
|
|
|
<div class="button-group">
|
|
|
|
<a class="change-stream-privacy button rounded small btn-warning" role="button">
|
|
|
|
<i class="fa fa-pencil" aria-hidden="true"></i>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2021-07-01 11:34:18 +02:00
|
|
|
<div class="subscription-type">
|
|
|
|
<div class="subscription-type-text">
|
2021-07-18 13:49:31 +02:00
|
|
|
{{> stream_permission_description
|
2021-07-01 11:34:18 +02:00
|
|
|
stream_post_policy_values=../stream_post_policy_values
|
|
|
|
message_retention_text=../message_retention_text}}
|
|
|
|
</div>
|
2017-04-15 04:20:32 +02:00
|
|
|
</div>
|
2021-07-01 11:34:18 +02:00
|
|
|
{{/with}}
|
2021-07-04 19:39:24 +02:00
|
|
|
<div class="stream-email-box" {{#unless sub.email_address}}style="display: none;"{{/unless}}>
|
2021-07-08 22:54:57 +02:00
|
|
|
<h3 class="stream_setting_subsection_title">
|
2021-07-04 19:39:24 +02:00
|
|
|
{{t "Email address" }}
|
2021-07-18 13:49:31 +02:00
|
|
|
{{> ../help_link_widget link="/help/message-a-stream-by-email" }}
|
2021-07-08 22:54:57 +02:00
|
|
|
</h3>
|
2021-07-04 19:39:24 +02:00
|
|
|
<div class="stream-email">
|
|
|
|
<span class="email-address">{{sub.email_address}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-01-06 12:29:55 +01:00
|
|
|
</div>
|
2020-05-24 14:24:23 +02:00
|
|
|
|
2021-07-08 22:54:57 +02:00
|
|
|
<div id="personal-stream-settings" class="personal_settings stream_section collapse {{#sub.subscribed}}in{{/sub.subscribed}}">
|
|
|
|
<div class="subsection-header">
|
|
|
|
<h3 class="stream_setting_subsection_title inline-block">{{t "Personal settings" }}</h3>
|
|
|
|
<div id="stream_change_property_status{{sub.stream_id}}" class="stream_change_property_status alert-notification"></div>
|
2020-05-24 14:24:23 +02:00
|
|
|
</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">
|
2021-08-06 09:45:45 +02:00
|
|
|
{{#each other_settings}}
|
2017-04-15 04:20:32 +02:00
|
|
|
<li>
|
2021-07-18 13:49:31 +02:00
|
|
|
{{> stream_settings_checkbox
|
2019-07-11 04:05:28 +02:00
|
|
|
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")
|
2021-08-06 09:45:45 +02:00
|
|
|
notification_setting=false
|
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>
|
2021-08-06 09:45:45 +02:00
|
|
|
<h4>{{t "Notification settings" }}</h4>
|
|
|
|
<ul class="grey-box">
|
|
|
|
{{#each notification_settings}}
|
|
|
|
<li>
|
|
|
|
{{> stream_settings_checkbox
|
|
|
|
setting_name=name
|
|
|
|
is_checked=is_checked
|
|
|
|
is_muted=(lookup ../sub "is_muted")
|
|
|
|
stream_id=(lookup ../sub "stream_id")
|
|
|
|
notification_setting=true
|
|
|
|
disabled_realm_setting=disabled_realm_setting
|
|
|
|
is_disabled=is_disabled
|
|
|
|
label=label}}
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
2017-04-15 04:20:32 +02:00
|
|
|
</div>
|
2020-05-16 17:53:50 +02:00
|
|
|
</div>
|
2021-07-01 11:34:18 +02:00
|
|
|
|
2021-06-26 15:28:24 +02:00
|
|
|
<div class="subscriber_settings stream_section">
|
2021-07-01 11:34:18 +02:00
|
|
|
{{#with sub}}
|
|
|
|
<div class="subscription-members-setting">
|
2021-07-18 13:49:31 +02:00
|
|
|
{{> stream_members}}
|
2021-07-01 11:34:18 +02:00
|
|
|
</div>
|
|
|
|
{{/with}}
|
2016-10-28 06:52:17 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|