2020-03-07 22:50:29 +00:00
|
|
|
{% extends 'layout.html' %}
|
2021-02-28 00:44:58 +00:00
|
|
|
{% load i18n %}
|
2021-02-28 18:00:36 +00:00
|
|
|
|
|
|
|
{% block title %}{% trans "Notifications" %}{% endblock %}
|
|
|
|
|
2020-03-07 22:50:29 +00:00
|
|
|
{% block content %}
|
2021-05-07 21:00:55 +00:00
|
|
|
<header class="columns">
|
|
|
|
<div class="column">
|
|
|
|
<h1 class="title">{% trans "Notifications" %}</h1>
|
|
|
|
</div>
|
2020-03-07 22:50:29 +00:00
|
|
|
|
2021-05-07 21:00:55 +00:00
|
|
|
<form name="clear" action="/notifications" method="POST" class="column is-narrow">
|
2020-03-17 01:05:49 +00:00
|
|
|
{% csrf_token %}
|
2021-02-27 22:22:39 +00:00
|
|
|
<button class="button is-danger is-light" type="submit" class="secondary">{% trans "Delete notifications" %}</button>
|
2020-03-17 01:05:49 +00:00
|
|
|
</form>
|
2021-05-07 21:00:55 +00:00
|
|
|
</header>
|
|
|
|
|
|
|
|
<div class="block">
|
|
|
|
<nav class="tabs">
|
|
|
|
<ul>
|
|
|
|
{% url 'notifications' as tab_url %}
|
|
|
|
<li {% if tab_url == request.path %}class="is-active"{% endif %}>
|
|
|
|
<a href="{{ tab_url }}">{% trans "All" %}</a>
|
|
|
|
</li>
|
|
|
|
{% url 'notifications' 'mentions' as tab_url %}
|
|
|
|
<li {% if tab_url == request.path %}class="is-active"{% endif %}>
|
|
|
|
<a href="{{ tab_url }}">{% trans "Mentions" %}</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
2020-03-17 01:05:49 +00:00
|
|
|
</div>
|
|
|
|
|
2020-09-29 21:45:04 +00:00
|
|
|
<div class="block">
|
2020-03-17 01:05:49 +00:00
|
|
|
{% for notification in notifications %}
|
2021-10-02 14:58:20 +00:00
|
|
|
{% include 'notifications/item.html' %}
|
2020-03-17 01:05:49 +00:00
|
|
|
{% endfor %}
|
2020-12-11 19:26:34 +00:00
|
|
|
|
2020-03-17 01:05:49 +00:00
|
|
|
{% if not notifications %}
|
2021-02-27 22:22:39 +00:00
|
|
|
<p>{% trans "You're all caught up!" %}</p>
|
2020-03-17 01:05:49 +00:00
|
|
|
{% endif %}
|
2020-03-07 22:50:29 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|