{{t "Notification triggers" }}

{{> settings_save_discard_widget section_name="general-notify-settings" show_only_indicator=(not for_realm_settings) }}

{{t "Configure how Zulip notifies you about new messages." }}

{{#each general_settings}} {{#each this.notification_settings}} {{> notification_settings_checkboxes setting_name=this.setting_name is_checked=this.is_checked is_disabled=this.is_disabled prefix=../../prefix }} {{/each}} {{/each}} {{#unless for_realm_settings}} {{> ../settings/stream_specific_notification_row }} {{/unless}}
{{t "Desktop"}} {{t "Mobile"}} {{#if (not realm_push_notifications_enabled) }} {{/if}} {{t "Email"}} @all
{{t "Visual"}} {{t "Audible"}}
{{ this.label }}

{{t "Desktop message notifications" }} {{> ../help_link_widget link="/help/desktop-notifications" }}

{{> settings_save_discard_widget section_name="desktop-message-settings" show_only_indicator=(not for_realm_settings) }}
{{#unless for_realm_settings}}

{{t "Test desktop notification" }}

{{/unless}} {{#each notification_settings.desktop_notification_settings}} {{> settings_checkbox setting_name=this is_checked=(lookup ../settings_object this) label=(lookup ../settings_label this) prefix=../prefix}} {{/each}}

{{t "Mobile message notifications" }} {{> ../help_link_widget link="/help/mobile-notifications" }}

{{> settings_save_discard_widget section_name="mobile-message-settings" show_only_indicator=(not for_realm_settings) }}
{{#each notification_settings.mobile_notification_settings}} {{> settings_checkbox setting_name=this is_checked=(lookup ../settings_object this) label=(lookup ../settings_label this) show_push_notifications_tooltip=(lookup ../show_push_notifications_tooltip this) prefix=../prefix}} {{/each}}

{{t "Email message notifications" }} {{> ../help_link_widget link="/help/email-notifications" }}

{{> settings_save_discard_widget section_name="email-message-settings" show_only_indicator=(not for_realm_settings) }}
{{#each notification_settings.email_message_notification_settings}} {{> settings_checkbox setting_name=this is_checked=(lookup ../settings_object this) label=(lookup ../settings_label this) prefix=../prefix}} {{/each}}

{{t "Other emails" }}

{{> settings_save_discard_widget section_name="other-emails-settings" show_only_indicator=(not for_realm_settings) }}
{{#each notification_settings.other_email_settings}} {{> settings_checkbox setting_name=this is_checked=(lookup ../settings_object this) label=(lookup ../settings_label this) prefix=../prefix}} {{/each}}