aboutsummaryrefslogtreecommitdiff
path: root/app/templates/notifications/list.html
blob: d6de54ecca475098665d5938f9019c6322d72829 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{% extends "base.html" %}

{% block title %}
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 }}">
				{{ n.title}} [{{ n.causer.display_name }}]
			</a></li>
		{% else %}
			<li><i>No notifications</i></ul>
		{% endfor %}
	</ul>
{% endblock %}