2018-05-13 18:55:28 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
Notifications
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2018-05-29 18:20:11 +02:00
|
|
|
{% 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 %}
|
2018-05-13 18:55:28 +02:00
|
|
|
<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 %}
|