2021-08-20 09:32:38 +02:00
<form class="notification-settings-form">
2021-09-28 09:09:52 +02:00
<div class="general_notifications {{ # if for_realm_settings }} org-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>
2021-09-28 09:09:52 +02:00
{{ > settings_save_discard_widget section_name = "general-notifiy-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" }}
{{ # if ( not page_params .realm_push_notifications_enabled ) }}
<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>
<th> {{ t "Audio" }} </th>
</tr>
</thead>
<tbody>
{{ # each general_settings }}
<tr>
<td> {{ this .label }} </td>
{{ # each this .notification_settings }}
{{ > notification_settings_checkboxes
setting_name=this.setting_name
is_checked=this.is_checked
2021-08-20 09:48:11 +02:00
is_disabled=this.is_disabled
prefix=../../prefix }}
2020-03-23 08:29:48 +01:00
{{ / each }}
2021-08-20 09:32:38 +02:00
</tr>
{{ / 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
2021-09-28 09:09:52 +02:00
<div class="desktop_notifications m-10 {{ # if for_realm_settings }} org-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">
<h3> {{ t "Desktop message 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 }}
{{ > settings_checkbox
setting_name=this
2021-08-25 13:03:05 +02:00
is_checked=(lookup ../settings_object this)
2021-08-20 09:48:11 +02:00
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 }} ">
2021-09-28 09:09:52 +02:00
<select name="notification_sound" class="setting_notification_sound prop-element" 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-08-20 09:32:38 +02:00
<option value=" {{ this }} "> {{ this }} </option>
{{ / 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>
2021-08-10 12:56:28 +02:00
<select name="desktop_icon_count_display" class="setting_desktop_icon_count_display prop-element"
2021-08-20 09:32:38 +02:00
data-setting-widget-type="number">
{{ > dropdown_options_widget option_values = desktop_icon_count_display_values }}
</select>
</div>
2021-09-11 09:53:38 +02:00
</div>
2021-09-28 09:09:52 +02:00
<div class="mobile_notifications m-10 {{ # if for_realm_settings }} org-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">
<h3> {{ t "Mobile message 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 }}
{{ > settings_checkbox
setting_name=this
2021-08-25 13:03:05 +02:00
is_checked=(lookup ../settings_object this)
2021-08-20 09:32:38 +02:00
label=(lookup ../settings_label this)
2021-08-20 09:48:11 +02:00
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>
2021-09-28 09:09:52 +02:00
<div class="email_message_notifications m-10 {{ # if for_realm_settings }} org-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">
<h3> {{ t "Email message 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
2021-08-14 11:31:31 +02:00
<label for="email_notifications_batching_period">
2021-09-11 00:15:01 +02:00
{{ t "Delay before sending message notification emails" }}
2021-08-14 11:31:31 +02:00
</label>
<div class="input-group">
2021-09-28 09:09:52 +02:00
<select name="email_notifications_batching_period_seconds" class="setting_email_notifications_batching_period_seconds prop-element" data-setting-widget-type="number">
2021-08-14 11:31:31 +02:00
{{ # each email_notifications_batching_period_values }}
<option value=" {{ this .value }} "> {{ this .description }} </option>
{{ / each }}
</select>
</div>
2021-09-11 13:20:07 +02:00
{{ # each notification_settings .email_message_notification_settings }}
2021-08-20 09:32:38 +02:00
{{ > settings_checkbox
setting_name=this
2021-08-25 13:03:05 +02:00
is_checked=(lookup ../settings_object this)
2021-08-20 09:48:11 +02:00
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>
2021-09-28 09:09:52 +02:00
<div class="other_email_notifications m-10 {{ # if for_realm_settings }} org-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 }}
{{ > settings_checkbox
setting_name=this
2021-09-14 14:48:18 +02:00
is_checked=(lookup ../settings_object this)
2021-09-11 13:20:07 +02:00
label=(lookup ../settings_label this)
prefix=../prefix}}
{{ / each }}
2021-08-20 09:32:38 +02:00
</div>
</form>