2019-04-26 15:14:53 +02:00
{{!-- 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. --}}
2023-11-27 22:28:05 +01:00
<div class="sub_setting_checkbox">
<div id="sub_ {{ setting_name }} _setting" class=" {{ # if disabled_realm_setting }} control-label-disabled
{{ else if notification_setting }} sub_notification_setting {{ / if }} new-style">
<span {{ # if ( and disabled_realm_setting ( eq setting_name "push_notifications" ) ) }} class="tippy-zulip-tooltip" data-tooltip-template-id="mobile-push-notification-tooltip-template" {{ / if }} >
<label class="checkbox">
<input id=" {{ setting_name }} _ {{ stream_id }} " name=" {{ setting_name }} "
class="sub_setting_control" type="checkbox"
{{ # if is_checked }} checked {{ / if }}
{{ # if is_disabled }} disabled="disabled" {{ / if }} />
<span></span>
</label>
<label class="inline" for=" {{ setting_name }} _ {{ stream_id }} ">
{{ label }}
</label>
</span>
</div>
{{ # if ( eq setting_name "is_muted" ) }}
2024-05-01 19:58:46 +02:00
{{ > ../help_link_widget link = "/help/mute-a-channel" }}
2023-11-27 22:28:05 +01:00
{{ else if ( eq setting_name "push_notifications" ) }}
{{ > ../help_link_widget link = "/help/mobile-notifications#enabling-push-notifications-for-self-hosted-servers" }}
{{ / if }}
2019-06-14 14:42:48 +02:00
</div>