mirror of https://github.com/zulip/zulip.git
templates: Wrap stream_settings_checkbox.
This commit is contained in:
parent
7af6be9aaf
commit
b234c52699
|
@ -1,13 +1,23 @@
|
|||
{{!-- If setting is disabled on realm level, then render setting as control-label-disabled and do not set setting value. Setting status should not change on any click handler, as it is disabled at realm level. --}}
|
||||
<div id="sub_{{setting_name}}_setting" class="sub_setting_checkbox {{#unless disabled_realm_setting}}{{#if notification_setting}}sub_notification_setting {{#if is_muted}}muted-sub{{/if}}{{/if}}{{else}}control-label-disabled{{/unless}}">
|
||||
<input id="{{setting_name}}_{{stream_id}}" name="{{setting_name}}" class="sub_setting_control" type="checkbox" tabindex="-1" {{#if is_checked}}checked{{/if}}{{#if is_disabled}}disabled="disabled"{{/if}} />
|
||||
<div id="sub_{{setting_name}}_setting"
|
||||
class="sub_setting_checkbox
|
||||
{{#unless disabled_realm_setting}}{{#if notification_setting}}sub_notification_setting
|
||||
{{#if is_muted}}muted-sub{{/if}}{{/if}}{{else}}control-label-disabled{{/unless}}">
|
||||
<input id="{{setting_name}}_{{stream_id}}" name="{{setting_name}}"
|
||||
class="sub_setting_control" type="checkbox" tabindex="-1"
|
||||
{{#if is_checked}}checked{{/if}}{{#if is_disabled}}disabled="disabled"{{/if}} />
|
||||
<label class="subscription-control-label">{{label}}</label>
|
||||
|
||||
{{!-- Tooltips for settings --}}
|
||||
{{#if (eq setting_name "is_muted")}}
|
||||
<p class="mute-note {{#unless is_muted}}hide-mute-note{{/unless}}">{{t "Muted streams don't show up in \"All messages\" or generate notifications unless you are mentioned." }}</p>
|
||||
<p class="mute-note {{#unless is_muted}}hide-mute-note{{/unless}}">
|
||||
{{t "Muted streams don't show up in \"All messages\" or generate notifications unless you are mentioned." }}
|
||||
</p>
|
||||
{{/if}}
|
||||
{{#if (eq setting_name "push_notifications")}}
|
||||
<i class="fa fa-question-circle settings-info-icon {{#unless disabled_realm_setting}}hide{{/unless}}" data-toggle="tooltip" title="{{t 'Mobile push notifications are not configured on this server.' }}"></i>
|
||||
<i class="fa fa-question-circle settings-info-icon {{#unless disabled_realm_setting}}hide{{/unless}}"
|
||||
data-toggle="tooltip"
|
||||
title="{{t 'Mobile push notifications are not configured on this server.' }}">
|
||||
</i>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue