727 B · text History b1da290
{% 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>
    {% 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>

  {% 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 %}