Add notice to notification settings

This commit is contained in:
rubenwardy 2020-12-05 18:19:12 +00:00
parent c8e93a9f52
commit d976269f1a
2 changed files with 7 additions and 1 deletions

View File

@ -77,5 +77,5 @@ def settings():
return redirect(url_for("notifications.settings"))
return render_template("notifications/settings.html",
form=form, user=current_user, types=types,
form=form, user=current_user, types=types, is_new=is_new,
tabs=get_setting_tabs(current_user), current_tab="notifications")

View File

@ -7,6 +7,12 @@
{% block pane %}
<h2 class="mt-0">{{ _("Email and Notifications") }}</h2>
{% if is_new %}
<p class="alert alert-info">
{{ _("Email notifications are currently turned off. Click 'Save' to apply recommended settings.") }}
</p>
{% endif %}
{% from "macros/forms.html" import render_field, render_submit_field, render_checkbox_field %}
<form action="" method="POST" class="form" role="form">
{{ form.hidden_tag() }}