Rewrite notif page

This commit is contained in:
cuom1999 2024-04-26 20:55:24 -05:00
parent 1439dd12c8
commit 55a85689e9
3 changed files with 14 additions and 7 deletions

View file

@ -1,7 +1,7 @@
{% extends "base.html" %}
{% block body %}
{% if not has_notifications %}
{% if not notifications %}
<h2 style="text-align: center;">{{ _('You have no notifications') }}</h2>
{% else %}
<table class="table">
@ -14,7 +14,7 @@
{% for notification in notifications %}
<tr class="{{ 'highlight' if not notification.seen }}">
<td>
{{ link_user(notification.author) }}
{{ link_user(notification.author_id) }}
</td>
<td>
{{ notification.category }}
@ -31,5 +31,8 @@
{% endfor %}
</table>
{% endif %}
<div style="margin-top: 10px;">
{% include "list-pages.html" %}
</div>
{% endblock %}