aboutsummaryrefslogtreecommitdiff
path: root/app/templates/notifications/list.html
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-05-13 17:55:28 +0100
committerrubenwardy <rw@rubenwardy.com>2018-05-13 18:04:07 +0100
commit4fdafefcd5b0267e3b9958f3dcc6b05a6eeb0906 (patch)
treeaa9aa3b351302353e2ff8eaf943654c0da22a15d /app/templates/notifications/list.html
parentf3c433de06e19ae9a6e1706b4746d46e6a33d70c (diff)
downloadcheatdb-4fdafefcd5b0267e3b9958f3dcc6b05a6eeb0906.tar.xz
Add notifications
Fixes #28
Diffstat (limited to 'app/templates/notifications/list.html')
-rw-r--r--app/templates/notifications/list.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/templates/notifications/list.html b/app/templates/notifications/list.html
new file mode 100644
index 0000000..fb133e8
--- /dev/null
+++ b/app/templates/notifications/list.html
@@ -0,0 +1,17 @@
+{% extends "base.html" %}
+
+{% block title %}
+Notifications
+{% endblock %}
+
+{% block content %}
+ <ul>
+ {% for n in current_user.notifications %}
+ <li><a href="{{ n.url }}">
+ {{ n.title}} [{{ n.causer.display_name }}]
+ </a></li>
+ {% else %}
+ <li><i>No notifications</i></ul>
+ {% endfor %}
+ </ul>
+{% endblock %}