tetratto/crates/app/src/public/html/misc/notifications.html

28 lines
982 B
HTML
Raw Normal View History

{% extends "root.html" %} {% block head %}
2025-03-30 22:26:20 -04:00
<title>Notifications - {{ config.name }}</title>
2025-03-31 11:45:34 -04:00
{% endblock %} {% block body %} {{ macros::nav(selected="notifications") }}
2025-03-30 22:26:20 -04:00
<main class="flex flex-col gap-2">
2025-04-03 20:05:21 -04:00
<div class="card-nest">
<div class="card small flex items-center justify-between gap-2">
<span class="flex items-center gap-2">
{{ icon "bell" }}
<span>{{ text "notifs:label.notifications" }}</span>
</span>
2025-03-30 22:26:20 -04:00
2025-04-03 20:05:21 -04:00
<button
onclick="trigger('me::clear_notifs')"
class="small quaternary"
>
{{ icon "bomb" }}
<span>{{ text "notifs:action.clear" }}</span>
</button>
</div>
<div class="card tertiary flex flex-col gap-4">
{% for notification in notifications %} {{
components::notification(notification=notification) }} {% endfor %}
</div>
</div>
2025-03-30 22:26:20 -04:00
</main>
{% endblock %}