{% extends "root.html" %}
{% block content %}
<div class="space-y-4 text-left">
<div class="flex items-center justify-between">
<h1 class="text-3xl font-bold">Notifications</h1>
<div class="flex items-center gap-2">
{% set toggle_base = "/notifications" %}{% set view_mode = "classic" %}{% include "forum/_view_toggle.html" %}
{% if notifications|length > 0 %}
<form method="post" action="/notifications/read-all" class="m-0" hx-boost="false">
<button type="submit" class="btn btn-ghost btn-sm">Mark all read</button>
</form>
{% endif %}
</div>
</div>
{% if notifications|length == 0 %}
<p class="opacity-70">No notifications yet. Watch a category to get notified about new topics.</p>
{% else %}
<ul class="space-y-2">
{% for n in notifications %}{% include "_notif_item.html" %}{% endfor %}
</ul>
{% endif %}
</div>
{% endblock %}
neiam
/recourse
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
895 B · text
History
263b40b