mirror of https://github.com/zulip/zulip.git
94 lines
4.9 KiB
Handlebars
94 lines
4.9 KiB
Handlebars
<div class="subscription_settings" data-stream-id="{{sub.stream_id}}">
|
|
<div class="inner-box">
|
|
<div class="alert stream_change_property_info"></div>
|
|
|
|
{{#with sub}}
|
|
<div class="stream-header">
|
|
{{> subscription_privacy
|
|
invite_only=invite_only
|
|
is_web_public=is_web_public }}
|
|
<div class="stream-name">
|
|
<span title="{{name}}" class="stream-name-editable editable-section" >{{name}}</span>
|
|
{{#if can_change_name_description}}
|
|
<span class="editable" data-make-editable=".stream-name-editable"></span>
|
|
<span class="checkmark" data-finish-editing=".stream-name-editable">✓</span>
|
|
{{/if}}
|
|
</div>
|
|
<div class="button-group">
|
|
{{#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 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 }}{{t "Unsubscribe"}}{{else}}{{t "Subscribe"}}{{/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>
|
|
</div>
|
|
</div>
|
|
<div class="stream-description">
|
|
<span class="stream-description-editable editable-section description rendered_markdown" data-no-description="{{t 'No description.' }}">{{rendered_markdown rendered_description}}</span>
|
|
{{#if can_change_name_description}}
|
|
<span class="editable" data-make-editable=".stream-description-editable"></span>
|
|
<span class="checkmark" data-finish-editing=".stream-description-editable">✓</span>
|
|
{{/if}}
|
|
</div>
|
|
<div class="subscription-type">
|
|
<div class="subscription-type-text">
|
|
{{> subscription_type
|
|
stream_post_policy_values=../stream_post_policy_values
|
|
message_retention_text=../message_retention_text}}
|
|
</div>
|
|
<a class="change-stream-privacy" {{#unless can_change_stream_permissions}}style="display: none;"{{/unless}}>[{{t "Change" }}]</a>
|
|
</div>
|
|
{{/with}}
|
|
|
|
<div class="regular_subscription_settings collapse {{#sub.subscribed}}in{{/sub.subscribed}}">
|
|
<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>
|
|
<div class="subscription-config">
|
|
<ul class="grey-box">
|
|
{{#each 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=is_notification_setting
|
|
disabled_realm_setting=disabled_realm_setting
|
|
is_disabled=is_disabled
|
|
label=label}}
|
|
</li>
|
|
{{/each}}
|
|
<li>
|
|
<label for="streamcolor" class="subscription-control-label">{{t "Stream color" }}</label>
|
|
<span class="sub_setting_control">
|
|
<input stream_id="{{sub.stream_id}}" class="colorpicker" id="streamcolor" type="text" value="{{sub.color}}" tabindex="-1" />
|
|
</span>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</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>
|
|
</div>
|
|
</div>
|
|
{{#with sub}}
|
|
<div class="subscription-members-setting">
|
|
{{> subscription_members}}
|
|
</div>
|
|
{{/with}}
|
|
</div>
|
|
</div>
|