NDOJ/templates/notification/list.html
2024-08-13 17:42:51 +07:00

38 lines
997 B
HTML

{% extends "base.html" %}
{% block body %}
{% if not notifications %}
<h2 style="text-align: center;">{{ _('You have no notifications') }}</h2>
{% else %}
<table class="table">
<tr>
<th>{{ _('User') }}</th>
<th>{{ _('Activity') }}</th>
<th>{{ _('Link') }}</th>
<th>{{ _('Time') }}</th>
</tr>
{% for notification in notifications %}
<tr class="{{ 'highlight' if not notification.seen }}">
<td>
{{ link_user(notification.author_id) }}
</td>
<td>
{{ notification.verbose_activity() }}
</td>
<td>
{% autoescape off %}
{{notification.html_link}}
{% endautoescape %}
</td>
<td>
{{ relative_time(notification.time) }}
</td>
</tr>
{% endfor %}
</table>
{% endif %}
<div style="margin-top: 10px;">
{% include "list-pages.html" %}
</div>
{% endblock %}