{% extends "base.html" %} {% block title %}Approvals — Audit Serve{% endblock %} {% block content %} {# Collect draft-readme-section packet_ids already shown so we group sub-records #} {% set seen_section_packets = namespace(ids=[]) %} {% if records %} {% for r in records %} {# Group draft-readme-section sub-records: show one row per packet_id #} {% if r.approval_subject_type == "draft-readme-section" %} {% set pid = r.packet_id %} {% if pid not in seen_section_packets.ids %} {% set seen_section_packets.ids = seen_section_packets.ids + [pid] %} {% endif %} {% else %} {% if r.approval_subject_type == "draft-readme" %} {% endif %} {% if r.approval_subject_type == "campaign-plan" %} {% endif %} {% endif %} {% endfor %}
ID Type Subject State Actions
{{ pid[:16] if pid else "—" }} draft-readme-section {{ r.repo_name or r.subject_key or "—" }} Sections Review sections
{{ r.approval_id[:12] if r.approval_id else "—" }} {{ r.approval_subject_type or "—" }} {{ r.subject_key or r.scope or "—" }} {{ r.approval_state or "—" }} {% if r.approval_subject_type == "draft-readme" %} {% endif %} {% if r.approval_subject_type == "campaign-plan" %} {% endif %}
{% else %}

No approval records found in the warehouse.

{% endif %} {% endblock %}