{% extends "base.html" %} {% block title %}Draft Sections — {{ repo_name }}{% endblock %} {% block content %}

README sections — {{ repo_name }}

Packet: {{ packet_id }}

{{ approved_count }} approved · {{ rejected_count }} rejected · {{ pending_count }} pending · {{ total }} total

{% if sections %}
{% for section in sections %} {% set state = section.state if section.state else "pending" %} {% set record_id = section.approval_id %}

{% if section.section_heading and section.section_heading != "(intro)" %}## {{ section.section_heading }}{% else %}(intro){% endif %}

{% if state == "approved" %} ✓ Approved {% elif state == "rejected" %} ✗ Rejected{% if section.rejected_reason %} ({{ section.rejected_reason }}){% endif %} {% else %} Pending {% endif %}
{{ section.section_body }}
{% if state == "pending" %} {% endif %}
{% endfor %}
{% else %}

No sections found for this packet.

{% endif %}
{% endblock %}