{% extends "layouts/ap-reader.njk" %} {% from "heading/macro.njk" import heading with context %} {% from "prose/macro.njk" import prose with context %} {% block readercontent %} {# Tab navigation #} {% set notifBase = mountPath + "/admin/reader/notifications" %} {# Toolbar — mark read + clear all #}
{% if unreadCount > 0 %}
{% endif %}
{% if tab == "mention" %} {# DM thread view — grouped by conversation #} {% if conversations and conversations.length > 0 %}
{% for conv in conversations %} {% include "partials/ap-dm-thread.njk" %} {% endfor %}
{% else %} {{ prose({ text: "No direct messages yet." }) }} {% endif %} {% else %} {% if items.length > 0 %}
{% for item in items %} {% include "partials/ap-notification-card.njk" %} {% endfor %}
{# Pagination — preserve active tab #} {% if before %} {% endif %} {% else %} {{ prose({ text: __("activitypub.notifications.empty") }) }} {% endif %} {% endif %} {% endblock %}