{% extends "spirit/_base.html" %}

{% load spirit_tags i18n %}

{% block title %}{% trans "Unread notifications" %}{% endblock %}

{% block content %}

    <h1 class="headline">{% trans "Unread notifications" %}</h1>

    <div class="rows">
        {% if page %}
            {% include "spirit/topic_notification/_render_list.html" with notifications=page %}
        {% else %}
            <p>{% trans "There are no new notifications" %}.</p>
        {% endif %}
    </div>

    {# TODO: make this a template tag #}
    {% if page.has_next %}
        <ul class="paginator">
            <li><a class="paginator-button" href="?notif={{ next_page_pk }}">{% trans "Next" %} <i class="fa fa-chevron-right"></i></a></li>
        </ul>
    {% endif %}

{% endblock %}
