2016-10-06 20:34:07 +02:00
<div id="notification-settings" class="settings-section" data-name="notifications">
2017-04-26 04:45:56 +02:00
<form class="notification-settings-form">
2017-07-12 22:22:07 +02:00
<div class="notification-reminder tip"> {{ # tr this }} Notifications are triggered when a message arrives and Zulip isn't in focus or the message is offscreen. {{ / tr }} </div>
2017-04-26 04:45:56 +02:00
2018-03-23 19:47:41 +01:00
<div id="stream-notify-settings">
<h3 class="inline-block"> {{ t "Stream messages" }} </h3>
<div class="alert-notification" id="stream-notify-settings-status"></div>
<p> {{ t "Unless I say otherwise for a particular stream, I want:" }} </p>
2017-04-26 04:45:56 +02:00
2018-03-23 19:52:46 +01:00
{{ partial "settings_checkbox"
2018-04-03 10:09:00 +02:00
"setting_name" "enable_stream_desktop_notifications"
"is_checked" page_params.enable_stream_desktop_notifications
"label" settings_label.enable_stream_desktop_notifications
"end_content" '<div class="propagate_stream_notifications_change"></div>'}}
2017-04-26 04:45:56 +02:00
2017-08-17 16:55:32 +02:00
2018-03-23 19:52:46 +01:00
{{ partial "settings_checkbox"
2018-04-03 10:09:00 +02:00
"setting_name" "enable_stream_sounds"
"is_checked" page_params.enable_stream_sounds
"label" settings_label.enable_stream_sounds
"end_content" '<div class="propagate_stream_notifications_change"></div>'}}
2018-03-23 19:52:46 +01:00
{{ partial "settings_checkbox"
2018-04-03 10:09:00 +02:00
"setting_name" "enable_stream_push_notifications"
"is_checked" page_params.enable_stream_push_notifications
"label" settings_label.enable_stream_push_notifications
"end_content" '<div class="propagate_stream_notifications_change"></div>'}}
2017-04-26 04:45:56 +02:00
2018-03-23 19:47:41 +01:00
<p class="notification-settings-note">
{{ # tr this }} Change notification settings for individual streams on your <a href="/#streams">Streams page</a>. {{ / tr }}
</p>
</div>
2017-07-05 21:53:30 +02:00
2018-03-23 19:47:41 +01:00
<div id="pm-mention-notify-settings">
<h3 class="inline-block"> {{ t "Private messages and @-mentions" }} </h3>
<div class="alert-notification" id="pm-mention-notify-settings-status"></div>
<p> {{ t "I want:" }} </p>
2017-04-26 04:45:56 +02:00
2018-03-23 19:52:46 +01:00
{{ partial "settings_checkbox"
2018-04-03 10:09:00 +02:00
"setting_name" "enable_desktop_notifications"
"is_checked" page_params.enable_desktop_notifications
"label" settings_label.enable_desktop_notifications}}
2017-04-26 04:45:56 +02:00
2018-03-23 19:47:41 +01:00
<div class="input-group disableable {{ # unless page_params .enable_desktop_notifications }} control-label-disabled {{ / unless }} ">
<label class="checkbox">
<input type="checkbox" name="pm_content_in_desktop_notifications"
2018-04-03 10:07:23 +02:00
id="pm_content_in_desktop_notifications"
{{ # unless page_params .enable_desktop_notifications }} disabled="disabled" {{ / unless }}
{{ # if page_params .pm_content_in_desktop_notifications }}
checked="checked"
{{ / if }} />
2018-03-23 19:47:41 +01:00
<span></span>
</label>
<label for="pm_content_in_desktop_notifications" id="pm_content_in_desktop_notifications_label" class="inline-block">
2018-03-23 19:52:46 +01:00
{{ settings_label .pm_content_in_desktop_notifications }}
2018-03-23 19:47:41 +01:00
</label>
</div>
2017-04-26 04:45:56 +02:00
2018-03-23 19:52:46 +01:00
{{ partial "settings_checkbox"
2018-04-03 10:09:00 +02:00
"setting_name" "enable_sounds"
"is_checked" page_params.enable_sounds
"label" settings_label.enable_sounds}}
2017-04-26 04:45:56 +02:00
2018-03-23 19:52:46 +01:00
{{ partial "settings_checkbox"
2018-04-03 10:09:00 +02:00
"setting_name" "enable_offline_email_notifications"
"is_checked" page_params.enable_offline_email_notifications
"label" settings_label.enable_offline_email_notifications}}
2017-04-26 04:45:56 +02:00
2018-03-23 19:52:46 +01:00
{{ partial "settings_checkbox"
2018-04-03 10:09:00 +02:00
"setting_name" "enable_offline_push_notifications"
"is_checked" page_params.enable_offline_push_notifications
"label" settings_label.enable_offline_push_notifications}}
2017-04-26 04:45:56 +02:00
2018-03-23 19:47:41 +01:00
<div class="input-group disableable {{ # unless page_params .enable_offline_push_notifications }} control-label-disabled {{ / unless }} ">
<label class="checkbox">
<input type="checkbox" name="enable_online_push_notifications" id="enable_online_push_notifications"
2018-04-03 10:07:23 +02:00
{{ # unless page_params .enable_offline_push_notifications }} disabled="disabled" {{ / unless }}
{{ # if page_params .enable_online_push_notifications }}
checked="checked"
{{ / if }} />
2018-03-23 19:47:41 +01:00
<span></span>
</label>
<label for="enable_online_push_notifications" id="enable_online_push_notifications_label" class="inline-block">
2018-03-23 19:52:46 +01:00
{{ settings_label .enable_online_push_notifications }}
2018-03-23 19:47:41 +01:00
</label>
</div>
2018-01-25 02:11:17 +01:00
</div>
2017-04-26 04:45:56 +02:00
2018-01-25 02:11:17 +01:00
<div id="other_notifications">
2018-03-07 23:08:42 +01:00
<h3 class="inline-block"> {{ t "Other notification settings" }} </h3>
<div class="alert-notification" id="other-notify-settings-status"></div>
2018-03-23 19:52:46 +01:00
{{ partial "settings_checkbox"
2018-04-03 10:09:00 +02:00
"setting_name" "enable_digest_emails"
"is_checked" page_params.enable_digest_emails
"label" settings_label.enable_digest_emails}}
2018-03-23 19:52:46 +01:00
2017-11-29 13:42:39 +01:00
<div class="input-group {{ # unless page_params .enable_offline_email_notifications }} control-label-disabled {{ / unless }} ">
<label class="checkbox">
<input type="checkbox" name="message_content_in_email_notifications"
2018-04-03 10:07:23 +02:00
id="message_content_in_email_notifications"
{{ # unless page_params .enable_offline_email_notifications }} disabled="disabled" {{ / unless }}
{{ # if page_params .message_content_in_email_notifications }}
checked="checked"
{{ / if }} />
2017-11-29 13:42:39 +01:00
<span></span>
</label>
<label for="message_content_in_email_notifications" id="message_content_in_email_notifications_label" class="inline-block">
2018-03-23 19:52:46 +01:00
{{ settings_label .message_content_in_email_notifications }}
2018-01-06 23:30:43 +01:00
</label>
</div>
2018-03-23 19:52:46 +01:00
{{ partial "settings_checkbox"
2018-04-03 10:09:00 +02:00
"setting_name" "realm_name_in_notifications"
"is_checked" page_params.realm_name_in_notifications
"label" settings_label.realm_name_in_notifications}}
2017-04-26 04:45:56 +02:00
</div>
</form>
2016-10-31 23:29:58 +01:00
2016-10-05 02:17:42 +02:00
</div>