aboutsummaryrefslogtreecommitdiff
path: root/app/templates/notifications
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-05-29 17:20:11 +0100
committerrubenwardy <rw@rubenwardy.com>2018-05-29 17:20:11 +0100
commit52fdc8c2120e459772e221c68b25bf6e7060f6f8 (patch)
treeebb9a1d16fc2ca4b13e3ea7ca332021b8c6e61b7 /app/templates/notifications
parent7e80adad5621013e5840ac43281cff149fa15842 (diff)
downloadcheatdb-52fdc8c2120e459772e221c68b25bf6e7060f6f8.tar.xz
Add clear all button to notifications page
Diffstat (limited to 'app/templates/notifications')
-rw-r--r--app/templates/notifications/list.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/templates/notifications/list.html b/app/templates/notifications/list.html
index fb133e8..d6de54e 100644
--- a/app/templates/notifications/list.html
+++ b/app/templates/notifications/list.html
@@ -5,6 +5,12 @@ Notifications
{% endblock %}
{% block content %}
+ {% if current_user.notifications %}
+ <form method="post" action="{{ url_for('clear_notifications_page') }}">
+ <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
+ <input type="submit" value="Clear All" />
+ </form>
+ {% endif %}
<ul>
{% for n in current_user.notifications %}
<li><a href="{{ n.url }}">