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. --}}
2020-01-28 23:22:46 +01:00
<div id="sub_ {{ setting_name }} _setting"
class="sub_setting_checkbox
2020-01-28 23:26:53 +01:00
{{ # if disabled_realm_setting }} control-label-disabled {{ else }}
2020-07-15 07:13:34 +02:00
{{ # if notification_setting }} sub_notification_setting {{ # if is_muted }} muted-sub {{ / if }} {{ / if }} {{ / if }} new-style">
<label class="checkbox">
<input id=" {{ setting_name }} _ {{ stream_id }} " name=" {{ setting_name }} "
2020-07-22 00:43:11 +02:00
class="sub_setting_control" type="checkbox"
2020-07-15 07:13:34 +02:00
{{ # if is_checked }} checked {{ / if }} {{ # if is_disabled }} disabled="disabled" {{ / if }} />
<span></span>
</label>
2020-07-22 00:43:11 +02:00
<label class="subscription-control-label" for=" {{ setting_name }} _ {{ stream_id }} "> {{ label }} </label>
2019-04-26 15:14:53 +02:00
{{!-- Tooltips for settings --}}
2019-06-25 02:54:18 +02:00
{{ # if ( eq setting_name "is_muted" ) }}
2020-01-28 23:22:46 +01:00
<p class="mute-note {{ # unless is_muted }} hide-mute-note {{ / unless }} ">
2021-04-14 03:04:02 +02:00
{{ # tr }}
2020-10-02 21:03:45 +02:00
Muted streams don't show up in "All messages" or generate notifications unless you are mentioned.
{{ / tr }}
2020-01-28 23:22:46 +01:00
</p>
2019-06-25 02:54:18 +02:00
{{ / if }}
{{ # if ( eq setting_name "push_notifications" ) }}
2021-02-26 10:03:01 +01:00
<i class="fa fa-question-circle settings-info-icon {{ # unless disabled_realm_setting }} hide {{ / unless }} tippy-zulip-tooltip"
data-tippy-content=" {{ t 'Mobile push notifications are not configured on this server.' }} ">
2020-01-28 23:22:46 +01:00
</i>
2019-06-25 02:54:18 +02:00
{{ / if }}
2019-06-14 14:42:48 +02:00
</div>