mirror of https://github.com/zulip/zulip.git
172 lines
7.8 KiB
Handlebars
172 lines
7.8 KiB
Handlebars
<div id="notification-settings" class="settings-section" data-name="notifications">
|
|
<form class="notification-settings-form">
|
|
<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>
|
|
<div class="alert" id="notify-settings-status"></div>
|
|
|
|
<h3 class="light">{{t "Stream messages" }}</h3>
|
|
<p>{{t "Unless I say otherwise for a particular stream, I want:" }}</p>
|
|
|
|
<div class="side-padded-container">
|
|
<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 "Desktop notifications" }}
|
|
</label>
|
|
<div class="propagate_stream_notifications_change"></div>
|
|
</div>
|
|
|
|
<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 notifications" }}
|
|
</label>
|
|
<div class="propagate_stream_notifications_change"></div>
|
|
</div>
|
|
|
|
<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 push notifications" }}
|
|
</label>
|
|
<div class="propagate_stream_notifications_change"></div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<p class="notification-settings-note">
|
|
{{#tr this}}Change notification settings for individual streams on your <a href="/#streams">Streams page</a>.{{/tr}}
|
|
</p>
|
|
|
|
<h3 class="light">{{t "Private messages and @-mentions" }}</h3>
|
|
<p>{{t "I want:" }}</p>
|
|
|
|
<div class="side-padded-container">
|
|
|
|
<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 "Desktop notifications" }}
|
|
</label>
|
|
</div>
|
|
|
|
<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 in desktop notifications" }}
|
|
</label>
|
|
</div>
|
|
|
|
<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 notifications" }}
|
|
</label>
|
|
</div>
|
|
|
|
<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>
|
|
|
|
<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 push notifications when offline" }}
|
|
</label>
|
|
</div>
|
|
|
|
<div class="input-group">
|
|
<label class="checkbox">
|
|
<input type="checkbox" name="enable_online_push_notifications" id="enable_online_push_notifications"
|
|
{{#if page_params.enable_online_push_notifications}}
|
|
checked="checked"
|
|
{{/if}} />
|
|
<span></span>
|
|
</label>
|
|
<label for="enable_online_push_notifications" class="inline-block">
|
|
{{t "Mobile push notifications always (even when online)" }}
|
|
</label>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="other_notifications">
|
|
|
|
<h3 class="light">{{t "Other notifications I want:" }}</h3>
|
|
|
|
<div class="side-padded-container">
|
|
<div class="input-group no-margin" id="digest_container">
|
|
<label class="checkbox">
|
|
<input type="checkbox" name="enable_digest_emails" id="enable_digest_emails"
|
|
{{#if page_params.enable_digest_emails}}
|
|
checked="checked"
|
|
{{/if}} />
|
|
<span></span>
|
|
</label>
|
|
<label for="enable_digest_emails" class="inline-block">
|
|
{{t "Digest emails when I'm away" }}
|
|
</label>
|
|
</div>
|
|
</div>
|
|
{{!-- If you add another control group here, make sure to change
|
|
$("#other_notifications").hide(); in settings.js to
|
|
$("#digest_container").hide();
|
|
--}}
|
|
</div>
|
|
</form>
|
|
|
|
</div>
|