2021-08-20 09:32:38 +02:00
<form class="notification-settings-form">
2022-11-03 13:18:42 +01:00
<div class="general_notifications {{ # if for_realm_settings }} settings-subsection-parent {{ else }} subsection-parent {{ / if }} ">
2021-09-27 13:30:24 +02:00
<div class="subsection-header inline-block">
<h3> {{ t "Notification triggers" }} </h3>
2023-01-02 20:50:23 +01:00
{{ > settings_save_discard_widget section_name = "general-notify-settings" show_only_indicator = ( not for_realm_settings ) }}
2021-09-27 13:30:24 +02:00
</div>
2024-04-18 15:20:36 +02:00
<p> {{ t "Configure how Zulip notifies you about new messages. In muted channels, channel notification settings apply only to unmuted topics." }} </p>
2023-08-07 09:32:19 +02:00
<table class="notification-table table table-bordered wrapped-table">
2021-08-20 09:32:38 +02:00
<thead>
<tr>
<th rowspan="2" width="30%"></th>
<th colspan="2" width="28%"> {{ t "Desktop" }} </th>
2023-11-27 22:28:05 +01:00
<th rowspan="2" width="14%">
<span {{ # if ( not realm_push_notifications_enabled ) }} class="control-label-disabled tippy-zulip-tooltip" data-tooltip-template-id="mobile-push-notification-tooltip-template" {{ / if }} >
2023-11-23 20:47:41 +01:00
{{ t "Mobile" }}
</span>
2023-11-27 22:28:05 +01:00
{{ > ../help_link_widget link = "/help/mobile-notifications#enabling-push-notifications-for-self-hosted-servers" }}
2021-08-20 09:32:38 +02:00
</th>
<th rowspan="2" width="14%"> {{ t "Email" }} </th>
<th rowspan="2" width="14%">@all
<i class="fa fa-question-circle settings-info-icon tippy-zulip-tooltip" data-tippy-content=" {{ t 'Whether wildcard mentions like @all are treated as mentions for the purpose of notifications.' }} "></i>
</th>
</tr>
<tr>
<th> {{ t "Visual" }} </th>
2022-11-11 01:18:56 +01:00
<th> {{ t "Audible" }} </th>
2021-08-20 09:32:38 +02:00
</tr>
</thead>
<tbody>
{{ # each general_settings }}
2023-08-21 08:10:03 +02:00
<tr>
2024-10-27 06:31:19 +01:00
<td>
{{ this .label }}
{{ # if this .help_link }}
{{ > ../help_link_widget link = this .help_link }}
{{ / if }}
</td>
2023-08-21 08:10:03 +02:00
{{ # each this .notification_settings }}
{{ > notification_settings_checkboxes
setting_name=this.setting_name
is_checked=this.is_checked
is_disabled=this.is_disabled
2023-11-27 23:50:45 +01:00
is_mobile_checkbox=this.is_mobile_checkbox
2023-08-21 08:10:03 +02:00
prefix=../../prefix }}
{{ / each }}
</tr>
2021-08-20 09:32:38 +02:00
{{ / each }}
</tbody>
2021-08-18 08:49:47 +02:00
{{ # unless for_realm_settings }}
2021-08-20 09:32:38 +02:00
<tbody id="stream-specific-notify-table">
</tbody>
2021-08-18 08:49:47 +02:00
{{ / unless }}
2021-08-20 09:32:38 +02:00
</table>
</div>
2017-04-26 04:45:56 +02:00
2023-08-21 08:10:03 +02:00
<div class="topic_notifications m-10 {{ # if for_realm_settings }} settings-subsection-parent {{ else }} subsection-parent {{ / if }} ">
2023-08-20 01:28:15 +02:00
2023-08-21 08:10:03 +02:00
<div class="subsection-header inline-block">
<h3> {{ t "Topic notifications" }}
2023-10-23 23:59:44 +02:00
{{ > ../help_link_widget link = "/help/topic-notifications" }}
2023-08-21 08:10:03 +02:00
</h3>
{{ > settings_save_discard_widget section_name = "topic-notifications-settings" show_only_indicator = ( not for_realm_settings ) }}
2023-10-23 23:59:44 +02:00
<p>
{{ # tr }}
You will automatically follow topics that you have configured to both <z-follow>follow</z-follow> and <z-unmute>unmute</z-unmute>.
{{ #*inline "z-follow" }} <a href="/help/follow-a-topic" target="_blank" rel="noopener noreferrer"> {{ > @partial-block }} </a> {{ / inline }}
{{ #*inline "z-unmute" }} <a href="/help/mute-a-topic" target="_blank" rel="noopener noreferrer"> {{ > @partial-block }} </a> {{ / inline }}
{{ / tr }}
</p>
2023-08-21 08:10:03 +02:00
</div>
2023-08-20 01:28:15 +02:00
2023-08-21 08:10:03 +02:00
<div class="input-group">
2024-08-07 21:54:05 +02:00
<label for=" {{ prefix }} automatically_follow_topics_policy" class="settings-field-label">
2024-06-27 06:44:11 +02:00
{{ settings_label .automatically_follow_topics_policy }}
{{ > ../help_link_widget link = "/help/follow-a-topic" }}
</label>
2023-08-21 08:10:03 +02:00
<select name="automatically_follow_topics_policy" class="setting_automatically_follow_topics_policy prop-element settings_select bootstrap-focus-style"
id=" {{ prefix }} automatically_follow_topics_policy" data-setting-widget-type="number">
{{ > dropdown_options_widget option_values = automatically_follow_topics_policy_values }}
</select>
</div>
2023-08-20 01:28:15 +02:00
2023-08-21 08:10:03 +02:00
<div class="input-group">
2024-08-07 21:54:05 +02:00
<label for=" {{ prefix }} automatically_unmute_topics_in_muted_streams_policy" class="settings-field-label">
2024-06-27 06:44:11 +02:00
{{ settings_label .automatically_unmute_topics_in_muted_streams_policy }}
{{ > ../help_link_widget link = "/help/mute-a-topic" }}
</label>
2023-08-21 08:10:03 +02:00
<select name="automatically_unmute_topics_in_muted_streams_policy" class="setting_automatically_unmute_topics_in_muted_streams_policy prop-element settings_select bootstrap-focus-style"
id=" {{ prefix }} automatically_unmute_topics_in_muted_streams_policy" data-setting-widget-type="number">
{{ > dropdown_options_widget option_values = automatically_unmute_topics_in_muted_streams_policy_values }}
</select>
2023-08-20 01:28:15 +02:00
</div>
2023-12-10 14:53:52 +01:00
{{ > settings_checkbox
setting_name="automatically_follow_topics_where_mentioned"
is_checked=(lookup settings_object "automatically_follow_topics_where_mentioned")
label=(lookup settings_label "automatically_follow_topics_where_mentioned")
2024-01-11 22:34:46 +01:00
prefix=prefix}}
2023-08-21 08:10:03 +02:00
</div>
2023-08-20 01:28:15 +02:00
2022-11-03 13:18:42 +01:00
<div class="desktop_notifications m-10 {{ # if for_realm_settings }} settings-subsection-parent {{ else }} subsection-parent {{ / if }} ">
2018-01-25 02:11:17 +01:00
2021-09-27 13:30:24 +02:00
<div class="subsection-header inline-block">
2022-11-08 20:12:19 +01:00
<h3> {{ t "Desktop message notifications" }}
{{ > ../help_link_widget link = "/help/desktop-notifications" }}
</h3>
2021-09-28 09:09:52 +02:00
{{ > settings_save_discard_widget section_name = "desktop-message-settings" show_only_indicator = ( not for_realm_settings ) }}
2021-09-27 13:30:24 +02:00
</div>
2019-04-20 01:04:22 +02:00
2021-08-26 21:03:27 +02:00
{{ # unless for_realm_settings }}
2024-06-26 01:40:37 +02:00
<p><a class="send_test_notification"> {{ t "Send a test notification" }} </a></p>
2021-08-26 21:03:27 +02:00
{{ / unless }}
2020-04-27 00:02:36 +02:00
2021-08-20 09:32:38 +02:00
{{ # each notification_settings .desktop_notification_settings }}
2021-12-04 15:39:38 +01:00
{{ > settings_checkbox
setting_name=this
is_checked=(lookup ../settings_object this)
label=(lookup ../settings_label this)
prefix=../prefix}}
2021-08-20 09:32:38 +02:00
{{ / each }}
2019-04-20 00:42:32 +02:00
2023-08-29 20:53:11 +02:00
<label for=" {{ prefix }} notification_sound">
2021-08-20 09:32:38 +02:00
{{ t "Notification sound" }}
</label>
2019-04-20 01:04:22 +02:00
2023-08-29 21:23:43 +02:00
<div class="input-group input-element-with-control {{ # unless enable_sound_select }} control-label-disabled {{ / unless }} ">
2023-02-16 10:57:08 +01:00
<select name="notification_sound" class="setting_notification_sound prop-element settings_select bootstrap-focus-style" id=" {{ prefix }} notification_sound" data-setting-widget-type="string"
2021-08-20 09:32:38 +02:00
{{ # unless enable_sound_select }}
disabled
{{ / unless }} >
<option value="none"> {{ t "None" }} </option>
2021-08-25 13:03:05 +02:00
{{ # each settings_object .available_notification_sounds }}
2021-12-04 15:39:38 +01:00
<option value=" {{ this }} "> {{ this }} </option>
2021-08-20 09:32:38 +02:00
{{ / each }}
</select>
<span class="play_notification_sound">
2024-09-02 22:19:43 +02:00
<i class="notification-sound-icon fa fa-play-circle" aria-label=" {{ t 'Play sound' }} "></i>
2021-08-20 09:32:38 +02:00
</span>
</div>
2019-04-20 01:04:22 +02:00
2021-08-20 09:32:38 +02:00
<div class="input-group">
2024-08-07 21:54:05 +02:00
<label for=" {{ prefix }} desktop_icon_count_display" class="settings-field-label"> {{ settings_label .desktop_icon_count_display }} </label>
2023-02-16 10:57:08 +01:00
<select name="desktop_icon_count_display" class="setting_desktop_icon_count_display prop-element settings_select bootstrap-focus-style" id=" {{ prefix }} desktop_icon_count_display" data-setting-widget-type="number">
2021-08-20 09:32:38 +02:00
{{ > dropdown_options_widget option_values = desktop_icon_count_display_values }}
</select>
</div>
2021-09-11 09:53:38 +02:00
</div>
2022-11-03 13:18:42 +01:00
<div class="mobile_notifications m-10 {{ # if for_realm_settings }} settings-subsection-parent {{ else }} subsection-parent {{ / if }} ">
2019-06-29 22:00:44 +02:00
2021-09-27 13:30:24 +02:00
<div class="subsection-header inline-block">
2022-11-08 20:12:19 +01:00
<h3> {{ t "Mobile message notifications" }}
{{ > ../help_link_widget link = "/help/mobile-notifications" }}
</h3>
2021-09-28 09:09:52 +02:00
{{ > settings_save_discard_widget section_name = "mobile-message-settings" show_only_indicator = ( not for_realm_settings ) }}
2021-09-27 13:30:24 +02:00
</div>
2023-11-28 20:48:12 +01:00
{{ # unless realm_push_notifications_enabled }}
<div class="tip">
{{ # tr }}
Mobile push notifications are not enabled on this server. <z-link>Learn more</z-link>
2024-01-09 01:40:18 +01:00
{{ #*inline "z-link" }} <a href="/help/mobile-notifications#enabling-push-notifications-for-self-hosted-servers" target="_blank" rel="noopener noreferrer"> {{ > @partial-block }} </a> {{ / inline }}
2023-11-28 20:48:12 +01:00
{{ / tr }}
</div>
{{ / unless }}
2019-04-20 01:04:22 +02:00
2021-08-20 09:32:38 +02:00
{{ # each notification_settings .mobile_notification_settings }}
2021-12-04 15:39:38 +01:00
{{ > settings_checkbox
setting_name=this
is_checked=(lookup ../settings_object this)
2024-10-20 21:21:20 +02:00
is_disabled=(lookup ../disabled_notification_settings this)
2021-12-04 15:39:38 +01:00
label=(lookup ../settings_label this)
prefix=../prefix}}
2021-08-20 09:32:38 +02:00
{{ / each }}
2021-09-11 09:53:38 +02:00
</div>
2022-11-03 13:18:42 +01:00
<div class="email_message_notifications m-10 {{ # if for_realm_settings }} settings-subsection-parent {{ else }} subsection-parent {{ / if }} ">
2019-04-18 03:58:25 +02:00
2021-09-27 13:30:24 +02:00
<div class="subsection-header inline-block">
2022-11-08 20:12:19 +01:00
<h3> {{ t "Email message notifications" }}
{{ > ../help_link_widget link = "/help/email-notifications" }}
</h3>
2021-09-28 09:09:52 +02:00
{{ > settings_save_discard_widget section_name = "email-message-settings" show_only_indicator = ( not for_realm_settings ) }}
2021-09-27 13:30:24 +02:00
</div>
2019-04-20 01:04:22 +02:00
2023-01-10 11:22:51 +01:00
<div class="input-group time-limit-setting">
2021-08-14 11:31:31 +02:00
2024-08-07 21:54:05 +02:00
<label for=" {{ prefix }} email_notifications_batching_period_seconds" class="settings-field-label">
2021-10-23 17:14:11 +02:00
{{ t "Delay before sending message notification emails" }}
</label>
2023-02-16 10:57:08 +01:00
<select name="email_notifications_batching_period_seconds" class="setting_email_notifications_batching_period_seconds prop-element settings_select bootstrap-focus-style" id=" {{ prefix }} email_notifications_batching_period_seconds" data-setting-widget-type="time-limit">
2021-08-14 11:31:31 +02:00
{{ # each email_notifications_batching_period_values }}
2021-12-04 15:39:38 +01:00
<option value=" {{ this .value }} "> {{ this .description }} </option>
2021-08-14 11:31:31 +02:00
{{ / each }}
</select>
2022-11-21 11:39:51 +01:00
<div class="dependent-settings-block">
2024-08-07 21:54:05 +02:00
<label for=" {{ prefix }} email_notification_batching_period_edit_minutes" class="inline-block">
2022-08-31 20:16:01 +02:00
{{ t 'Delay period (minutes)' }} :
</label>
<input type="text"
name="email_notification_batching_period_edit_minutes"
2023-01-16 10:46:45 +01:00
class="email_notification_batching_period_edit_minutes time-limit-custom-input"
2022-09-20 19:49:30 +02:00
data-setting-widget-type="time-limit"
2022-08-31 20:16:01 +02:00
autocomplete="off"
id=" {{ prefix }} email_notification_batching_period_edit_minutes"/>
</div>
2021-08-14 11:31:31 +02:00
</div>
2023-01-14 20:36:37 +01:00
<div class="input-group">
2024-08-07 21:54:05 +02:00
<label for=" {{ prefix }} realm_name_in_email_notifications_policy" class="settings-field-label"> {{ settings_label .realm_name_in_email_notifications_policy }} </label>
2023-01-14 20:36:37 +01:00
<select name="realm_name_in_email_notifications_policy" class="setting_realm_name_in_email_notifications_policy prop-element settings_select bootstrap-focus-style" id=" {{ prefix }} realm_name_in_email_notifications_policy" data-setting-widget-type="number">
{{ > dropdown_options_widget option_values = realm_name_in_email_notifications_policy_values }}
</select>
</div>
2021-09-11 13:20:07 +02:00
{{ # each notification_settings .email_message_notification_settings }}
2021-12-04 15:39:38 +01:00
{{ > settings_checkbox
setting_name=this
is_checked=(lookup ../settings_object this)
label=(lookup ../settings_label this)
2024-10-20 21:26:20 +02:00
is_disabled=(lookup ../disabled_notification_settings this)
2021-12-04 15:39:38 +01:00
prefix=../prefix}}
2021-08-20 09:32:38 +02:00
{{ / each }}
2021-09-11 13:20:07 +02:00
</div>
2022-11-03 13:18:42 +01:00
<div class="other_email_notifications m-10 {{ # if for_realm_settings }} settings-subsection-parent {{ else }} subsection-parent {{ / if }} ">
2018-01-06 23:30:43 +01:00
2021-09-27 13:30:24 +02:00
<div class="subsection-header inline-block">
<h3> {{ t "Other emails" }} </h3>
2021-09-28 09:09:52 +02:00
{{ > settings_save_discard_widget section_name = "other-emails-settings" show_only_indicator = ( not for_realm_settings ) }}
2021-09-27 13:30:24 +02:00
</div>
2021-09-11 13:20:07 +02:00
{{ # each notification_settings .other_email_settings }}
2021-12-04 15:39:38 +01:00
{{ > settings_checkbox
setting_name=this
is_checked=(lookup ../settings_object this)
label=(lookup ../settings_label this)
prefix=../prefix}}
2021-09-11 13:20:07 +02:00
{{ / each }}
2021-08-20 09:32:38 +02:00
</div>
</form>