{% if rows %}
{% for row in rows %}
{% include "_partials/approval_row.html" %}
{% endfor %}
{% else %}
{% with message = "No pending approvals. Memories with approval_required=true will appear here." %}
{% include "_partials/empty_state.html" %}
{% endwith %}
{% endif %}
{# Out-of-band count swap — only emitted on HTMX responses so the initial
full-page render in approvals.html doesn't duplicate it. #}
{% if request.headers.get("HX-Request") == "true" %}
{{ rows|length }} memor{{ "y" if rows|length == 1 else "ies" }} awaiting review.
Auto-refreshes every 10s.