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>
2021-08-20 09:32:38 +02:00
<p> {{ t "Configure how Zulip notifies you about new messages." }} </p>
<table class="notification-table table table-condensed table-bordered wrapped-table">
<thead>
<tr>
<th rowspan="2" width="30%"></th>
<th colspan="2" width="28%"> {{ t "Desktop" }} </th>
<th rowspan="2" width="14%" class=" {{ # if show_push_notifications_tooltip .push_notifications }} control-label-disabled {{ / if }} ">
{{ t "Mobile" }}
2022-03-30 11:39:21 +02:00
{{ # if ( not realm_push_notifications_enabled ) }}
2021-08-20 09:32:38 +02:00
<i class="fa fa-question-circle settings-info-icon tippy-zulip-tooltip" data-tippy-content=" {{ t 'Mobile push notifications are not configured on this server.' }} "></i>
{{ / if }}
</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 }}
2021-12-04 15:39:38 +01:00
<tr>
<td> {{ this .label }} </td>
{{ # 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 }}
</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">
{{ > ../settings / stream_specific_notification_row }}
</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
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 }}
2021-08-21 10:36:08 +02:00
<p><a class="send_test_notification"> {{ t "Test desktop 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
2021-08-20 09:32:38 +02:00
<label for="notification_sound">
{{ t "Notification sound" }}
</label>
2019-04-20 01:04:22 +02:00
2021-08-20 09:32:38 +02:00
<div class="input-group {{ # unless enable_sound_select }} control-label-disabled {{ / unless }} ">
2022-09-30 14:05:00 +02:00
<select name="notification_sound" class="setting_notification_sound prop-element" 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">
<i class="fa fa-play-circle" aria-label=" {{ t 'Play sound' }} "></i>
</span>
</div>
2019-04-20 01:04:22 +02:00
2021-08-20 09:32:38 +02:00
<div class="input-group">
<label for="desktop_icon_count_display" class="dropdown-title"> {{ settings_label .desktop_icon_count_display }} </label>
2022-09-30 14:05:00 +02:00
<select name="desktop_icon_count_display" class="setting_desktop_icon_count_display prop-element" 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>
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)
label=(lookup ../settings_label this)
show_push_notifications_tooltip=(lookup ../show_push_notifications_tooltip 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
2021-10-23 17:14:11 +02:00
<label for="email_notifications_batching_period">
{{ t "Delay before sending message notification emails" }}
</label>
2022-09-30 14:05:00 +02:00
<select name="email_notifications_batching_period_seconds" class="setting_email_notifications_batching_period_seconds prop-element" 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">
2022-08-31 20:16:01 +02:00
<label for="email_notification_batching_period_edit_minutes" class="inline-block">
{{ t 'Delay period (minutes)' }} :
</label>
<input type="text"
name="email_notification_batching_period_edit_minutes"
2022-09-20 19:49:30 +02:00
class="email_notification_batching_period_edit_minutes admin-realm-time-limit-input"
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>
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)
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>