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
<div class="alert" id="notify-settings-status"></div>
2018-01-25 02:11:17 +01:00
<h3> {{ t "Stream messages" }} </h3>
2017-07-05 21:53:30 +02:00
<p> {{ t "Unless I say otherwise for a particular stream, I want:" }} </p>
2017-04-26 04:45:56 +02:00
2018-01-25 02:11:17 +01:00
<div class="input-group">
<label class="checkbox">
<input type="checkbox" class="inline-block" name="enable_stream_desktop_notifications"
id="enable_stream_desktop_notifications"
{{ # if page_params .enable_stream_desktop_notifications }}
checked="checked"
{{ / if }} />
<span></span>
</label>
<label for="enable_stream_desktop_notifications" class="inline-block">
{{ t "Visual desktop notifications" }}
</label>
<div class="propagate_stream_notifications_change"></div>
</div>
2017-04-26 04:45:56 +02:00
2018-01-25 02:11:17 +01:00
<div class="input-group">
<label class="checkbox">
<input type="checkbox" class="inline-block" name="enable_stream_sounds" id="enable_stream_sounds"
{{ # if page_params .enable_stream_sounds }}
checked="checked"
{{ / if }} />
<span></span>
</label>
<label for="enable_stream_sounds" class="inline-block no-border">
{{ t "Audible desktop notifications" }}
</label>
<div class="propagate_stream_notifications_change"></div>
</div>
2017-08-17 16:55:32 +02:00
2018-01-25 02:11:17 +01:00
<div class="input-group">
<label class="checkbox">
<input type="checkbox" class="inline-block" name="enable_stream_push_notifications" id="enable_stream_push_notifications"
{{ # if page_params .enable_stream_push_notifications }}
checked="checked"
{{ / if }} />
<span></span>
</label>
<label for="enable_stream_push_notifications" class="inline-block no-border">
{{ t "Mobile notifications" }}
</label>
<div class="propagate_stream_notifications_change"></div>
2017-04-26 04:45:56 +02:00
</div>
2017-07-05 21:53:30 +02:00
<p class="notification-settings-note">
{{ # tr this }} Change notification settings for individual streams on your <a href="/#streams">Streams page</a>. {{ / tr }}
</p>
2018-01-25 02:11:17 +01:00
<h3> {{ t "Private messages and @-mentions" }} </h3>
2017-07-05 21:53:30 +02:00
<p> {{ t "I want:" }} </p>
2017-04-26 04:45:56 +02:00
2018-01-25 02:11:17 +01:00
<div class="input-group">
<label class="checkbox">
<input type="checkbox" name="enable_desktop_notifications" id="enable_desktop_notifications"
{{ # if page_params .enable_desktop_notifications }}
checked="checked"
{{ / if }} />
<span></span>
</label>
<label for="enable_desktop_notifications" class="inline-block">
{{ t "Visual desktop notifications" }}
</label>
</div>
2017-04-26 04:45:56 +02:00
2018-01-25 02:11:17 +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"
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 }} />
<span></span>
</label>
<label for="pm_content_in_desktop_notifications" id="pm_content_in_desktop_notifications_label" class="inline-block">
{{ t "Include content of private messages" }}
</label>
</div>
2017-04-26 04:45:56 +02:00
2018-01-25 02:11:17 +01:00
<div class="input-group">
<label class="checkbox">
<input type="checkbox" name="enable_sounds" id="enable_sounds"
{{ # if page_params .enable_sounds }}
checked="checked"
{{ / if }} />
<span></span>
</label>
<label for="enable_sounds" class="inline-block">
{{ t "Audible desktop notifications" }}
</label>
</div>
2017-04-26 04:45:56 +02:00
2018-01-25 02:11:17 +01:00
<div class="input-group">
<label class="checkbox">
<input type="checkbox" name="enable_offline_email_notifications" id="enable_offline_email_notifications"
{{ # if page_params .enable_offline_email_notifications }}
checked="checked"
{{ / if }} />
<span></span>
</label>
<label for="enable_offline_email_notifications" class="inline-block">
{{ t "Email notifications when offline" }}
</label>
</div>
2017-04-26 04:45:56 +02:00
2018-01-25 02:11:17 +01:00
<div class="input-group">
<label class="checkbox">
<input type="checkbox" name="enable_offline_push_notifications" id="enable_offline_push_notifications"
{{ # if page_params .enable_offline_push_notifications }}
checked="checked"
{{ / if }} />
<span></span>
</label>
<label for="enable_offline_push_notifications" class="inline-block">
{{ t "Mobile notifications when offline" }}
</label>
</div>
2017-04-26 04:45:56 +02:00
2018-01-25 02:11:17 +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"
{{ # unless page_params .enable_offline_push_notifications }} disabled="disabled" {{ / unless }}
{{ # if page_params .enable_online_push_notifications }}
checked="checked"
{{ / if }} />
<span></span>
</label>
<label for="enable_online_push_notifications" id="enable_online_push_notifications_label" class="inline-block">
{{ t "Mobile notifications always (even when online)" }}
</label>
</div>
2017-04-26 04:45:56 +02:00
2018-01-25 02:11:17 +01:00
<div id="other_notifications">
<h3> {{ t "Other notifications I want:" }} </h3>
<div class="input-group no-margin" id="digest_container">
2017-04-26 04:45:56 +02:00
<label class="checkbox">
2018-01-25 02:11:17 +01:00
<input type="checkbox" name="enable_digest_emails" id="enable_digest_emails"
{{ # if page_params .enable_digest_emails }}
2017-04-26 04:45:56 +02:00
checked="checked"
{{ / if }} />
<span></span>
</label>
2018-01-25 02:11:17 +01:00
<label for="enable_digest_emails" class="inline-block">
{{ t "Digest emails when I'm away" }}
2017-04-26 04:45:56 +02:00
</label>
</div>
2018-01-06 23:30:43 +01:00
<div class="input-group" id="realm_name_in_notifications_container">
<label class="checkbox">
<input type="checkbox" name="realm_name_in_notifications" id="realm_name_in_notifications"
{{ # if page_params .realm_name_in_notifications }}
checked="checked"
{{ / if }} />
<span></span>
</label>
<label for="realm_name_in_notifications" class="inline-block">
{{ t "Include organization name in subject of missed message emails" }}
</label>
</div>
{{ ! - - If we end up removing the last control group , make sure to change
$("#digest_container").hide(); in settings_notifications.js to
$("#other_notifications").hide();
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>