2020-07-03 02:50:31 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
|
|
|
|
{% if not has_notifications %}
|
|
|
|
|
|
|
|
<h2 style="text-align: center;">{{ _('You have no notifications') }}</h2>
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
<table class="table">
|
|
|
|
<tr>
|
|
|
|
<th>{{ _('User') }}</th>
|
|
|
|
<th>{{ _('Activity') }}</th>
|
2020-10-20 03:54:13 +00:00
|
|
|
<th>{{ _('Link') }}</th>
|
2020-07-03 02:50:31 +00:00
|
|
|
<th>{{ _('Time') }}</th>
|
|
|
|
</tr>
|
|
|
|
{% for notification in notifications %}
|
|
|
|
<tr class="{{ 'highlight' if not notification.seen }}">
|
|
|
|
<td>
|
2020-10-20 03:54:13 +00:00
|
|
|
{% if notification.comment %}
|
|
|
|
{{ link_user(notification.comment.author) }}
|
|
|
|
{% else %}
|
|
|
|
{{ link_user(notification.author) }}
|
|
|
|
{% endif %}
|
|
|
|
|
2020-07-03 02:50:31 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{ notification.category }}
|
|
|
|
</td>
|
|
|
|
<td>
|
2020-10-20 03:54:13 +00:00
|
|
|
{% if notification.comment %}
|
|
|
|
<a href="{{ notification.comment.link }}#comment-{{ notification.comment.id }}">{{ page_titles[notification.comment.page] }}</a>
|
|
|
|
{% else %}
|
|
|
|
{% autoescape off %}
|
|
|
|
{{notification.html_link}}
|
|
|
|
{% endautoescape %}
|
|
|
|
{% endif %}
|
2020-07-03 02:50:31 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{ relative_time(notification.time) }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
<!--
|
|
|
|
-->
|