NDOJ/templates/notification/list.html

39 lines
987 B
HTML
Raw Normal View History

2020-07-02 21:50:31 -05:00
{% extends "base.html" %}
{% block body %}
2024-04-26 20:55:24 -05:00
{% if not notifications %}
2023-01-27 17:11:10 -06:00
<h2 style="text-align: center;">{{ _('You have no notifications') }}</h2>
{% else %}
2020-07-02 21:50:31 -05:00
<table class="table">
2023-01-27 17:11:10 -06:00
<tr>
2020-07-02 21:50:31 -05:00
<th>{{ _('User') }}</th>
<th>{{ _('Activity') }}</th>
2020-10-19 22:54:13 -05:00
<th>{{ _('Link') }}</th>
2020-07-02 21:50:31 -05:00
<th>{{ _('Time') }}</th>
2023-01-27 17:11:10 -06:00
</tr>
{% for notification in notifications %}
<tr class="{{ 'highlight' if not notification.seen }}">
<td>
2024-04-26 20:55:24 -05:00
{{ link_user(notification.author_id) }}
2023-01-27 17:11:10 -06:00
</td>
<td>
2020-07-02 21:50:31 -05:00
{{ notification.category }}
2023-01-27 17:11:10 -06:00
</td>
<td>
2023-10-10 17:38:48 -05:00
{% autoescape off %}
{{notification.html_link}}
{% endautoescape %}
2023-01-27 17:11:10 -06:00
</td>
<td>
2020-07-02 21:50:31 -05:00
{{ relative_time(notification.time) }}
2023-01-27 17:11:10 -06:00
</td>
</tr>
{% endfor %}
2020-07-02 21:50:31 -05:00
</table>
2023-01-27 17:11:10 -06:00
{% endif %}
2024-04-26 20:55:24 -05:00
<div style="margin-top: 10px;">
{% include "list-pages.html" %}
</div>
2020-07-02 21:50:31 -05:00
{% endblock %}