{# Reusable system section — can be included in any report #}

{{ sys.name }} {{ sys.fsd_level }}

{% if sys.git %}
{{ sys.git.branch }} {{ sys.git.last_commit_hash }} {% if sys.git.dirty %}uncommitted{% endif %} {% if sys.git.last_commit_msg %}— {{ sys.git.last_commit_msg }}{% endif %}
{% endif %} {% if sys.packages %}
{% for p in sys.packages %}
{{ p.name }} v{{ p.version }}
{% endfor %}
{% endif %}

{% if sys.provider %}{{ sys.provider }} / {{ sys.region }}{% endif %} {% if sys.deploy_strategy %}— {{ sys.deploy_strategy }}{% endif %} {% if sys.domains %}— {{ sys.domains[0] }}{% endif %}

Containers ({{ sys.containers | length }})

{% for c in sys.containers %} {% endfor %}
ServiceTypeTechnologyPortComponents
{{ c.id }} {{ c.service_type.value }} {{ c.tech_summary }} {% if c.primary_port %}:{{ c.primary_port.host }}{% endif %} {{ c.components | length }}
{% if sys.relationships %}

Internal Relationships

{% for r in sys.relationships %} {% endfor %}
FromToDescription
{{ r.source_id }}{{ r.target_id }}{{ r.description }}
{% endif %}