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">
|
2022-07-17 17:19:31 +02:00
|
|
|
<button class="button small rounded subscribe-button sub_unsub_button {{#if should_display_subscription_button}}tippy-zulip-tooltip{{/if}} {{#unless subscribed }}unsubscribed{{/unless}}" type="button" name="button" {{#if should_display_subscription_button}}data-tippy-content="{{t 'Toggle subscription'}} (S)" {{else}}disabled="disabled"{{/if}}>
|
2021-11-20 13:25:41 +01:00
|
|
|
{{#if subscribed }}
|
|
|
|
{{#tr}}Unsubscribe{{/tr}}
|
|
|
|
{{else}}
|
|
|
|
{{#tr}}Subscribe{{/tr}}
|
|
|
|
{{/if}}
|
|
|
|
</button>
|
2021-06-26 15:28:24 +02:00
|
|
|
</div>
|
2022-07-17 17:19:31 +02:00
|
|
|
<a href="{{preview_url}}" class="button small rounded tippy-zulip-tooltip" id="preview-stream-button" role="button" data-tippy-content="{{t 'View stream'}} (V)" {{#unless should_display_preview_button }}style="display: none"{{/unless}}><i class="fa fa-eye"></i></a>
|
2021-06-26 15:28:24 +02:00
|
|
|
{{#if is_realm_admin}}
|
2022-07-17 17:19:31 +02:00
|
|
|
<button class="button small rounded btn-danger deactivate tippy-zulip-tooltip" type="button" name="delete_button" data-tippy-content="{{t 'Archive stream'}}"> <i class="fa fa-trash-o" aria-hidden="true"></i></button>
|
2021-06-26 15:28:24 +02:00
|
|
|
{{/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}}
|
2021-10-20 06:26:53 +02:00
|
|
|
<div class="stream-settings-tip-container">
|
|
|
|
{{> stream_settings_tip}}
|
|
|
|
</div>
|
2021-07-01 11:34:18 +02:00
|
|
|
<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>
|
2021-10-20 06:26:53 +02:00
|
|
|
<div class="button-group" {{#unless can_change_name_description}}style="display:none"{{/unless}}>
|
2022-07-17 17:19:31 +02:00
|
|
|
<button id="open_stream_info_modal" class="button rounded small btn-warning tippy-zulip-tooltip" data-tippy-content="{{t 'Change stream info' }}">
|
2021-07-01 11:34:18 +02:00
|
|
|
<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>
|
2022-10-18 11:03:09 +02:00
|
|
|
<div class="stream-permissions settings-subsection-parent" id="stream_permission_settings">
|
|
|
|
<div class="subsection-header">
|
|
|
|
<h3 class="stream_setting_subsection_title">{{t "Stream permissions" }}
|
|
|
|
</h3>
|
|
|
|
{{> ../settings/settings_save_discard_widget section_name="stream-permissions" }}
|
2021-07-01 11:34:18 +02:00
|
|
|
</div>
|
2022-10-18 11:03:09 +02:00
|
|
|
|
|
|
|
{{> stream_types
|
|
|
|
stream_post_policy_values=../stream_post_policy_values
|
|
|
|
stream_privacy_policy_values=../stream_privacy_policy_values
|
|
|
|
stream_privacy_policy=../stream_privacy_policy
|
|
|
|
zulip_plan_is_not_limited=../zulip_plan_is_not_limited
|
|
|
|
upgrade_text_for_wide_organization_logo=../upgrade_text_for_wide_organization_logo
|
2023-01-06 08:46:50 +01:00
|
|
|
is_business_type_org=../is_business_type_org
|
2022-10-18 11:03:09 +02:00
|
|
|
org_level_message_retention_setting=../org_level_message_retention_setting
|
2022-12-30 10:55:10 +01:00
|
|
|
is_stream_edit=true
|
|
|
|
can_remove_subscribers_setting_widget_name="can_remove_subscribers_group_id" }}
|
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>
|
2022-03-04 11:07:16 +01:00
|
|
|
<p>
|
|
|
|
{{t "You can use email to send messages to Zulip streams."}}
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<button class="button rounded copy_email_button" type="button" name="button">
|
|
|
|
<span class="copy_button">{{#tr}}Generate email address{{/tr}}</span>
|
|
|
|
</button>
|
|
|
|
</p>
|
2021-07-04 19:39:24 +02:00
|
|
|
</div>
|
2018-01-06 12:29:55 +01:00
|
|
|
</div>
|
2020-05-24 14:24:23 +02:00
|
|
|
|
2022-03-11 00:49:18 +01:00
|
|
|
<div id="personal-stream-settings" class="personal_settings stream_section">
|
2021-07-08 22:54:57 +02:00
|
|
|
<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">
|
2021-11-22 18:00:02 +01:00
|
|
|
<div class="subsection-parent">
|
2021-11-23 23:41:57 +01:00
|
|
|
{{#each other_settings}}
|
2021-12-04 15:39:38 +01:00
|
|
|
<div class="input-group">
|
|
|
|
{{> stream_settings_checkbox
|
|
|
|
setting_name=name
|
|
|
|
is_checked=is_checked
|
|
|
|
is_muted=(lookup ../sub "is_muted")
|
|
|
|
stream_id=(lookup ../sub "stream_id")
|
|
|
|
notification_setting=false
|
|
|
|
disabled_realm_setting=disabled_realm_setting
|
|
|
|
is_disabled=is_disabled
|
|
|
|
label=label}}
|
|
|
|
</div>
|
2021-11-23 23:41:57 +01:00
|
|
|
{{/each}}
|
|
|
|
|
2021-11-22 18:00:02 +01:00
|
|
|
<div class="input-group">
|
2021-11-23 23:49:32 +01:00
|
|
|
<label for="streamcolor">{{t "Stream color" }}</label>
|
2017-04-15 04:20:32 +02:00
|
|
|
<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>
|
2021-11-22 18:00:02 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-11-23 23:41:57 +01:00
|
|
|
<h4 class="stream_setting_subsection_title">{{t "Notification settings" }}</h4>
|
2021-11-22 18:00:02 +01:00
|
|
|
<div class="subsection-parent">
|
2021-11-23 23:41:57 +01:00
|
|
|
{{#each notification_settings}}
|
2021-12-04 15:39:38 +01:00
|
|
|
<div class="input-group">
|
|
|
|
{{> 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}}
|
|
|
|
</div>
|
2021-11-23 23:41:57 +01:00
|
|
|
{{/each}}
|
2021-11-22 18:00:02 +01:00
|
|
|
</div>
|
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}}
|
2021-12-21 17:39:05 +01:00
|
|
|
<div class="edit_subscribers_for_stream">
|
2021-11-09 18:59:22 +01:00
|
|
|
{{> stream_members}}
|
2021-07-01 11:34:18 +02:00
|
|
|
</div>
|
|
|
|
{{/with}}
|
2016-10-28 06:52:17 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|