{% from "components/timestamp.html.jinja" import timeago as ts %} {% if releases | length > 0 %}
{% for r in releases %}
{# ── Header row ─────────────────────────────────────────── #}
{# Status dot #} {% if r.summary_status == "RUNNING" %} {% elif r.summary_status == "QUEUED" %} {% elif r.summary_status == "FAILED" %} {% elif r.summary_status == "SUCCEEDED" %} {% elif r.summary_status == "TIMED_OUT" %} {% elif r.summary_status == "CANCELLED" %} {% else %} {% endif %} {% if r.commit_message %}{{ r.commit_message }}{% else %}{{ r.title }}{% endif %}
{{ r.org }}/{{ r.project }} {% if r.branch %} {{ r.branch }} {% endif %} {% if r.commit_sha %} {{ r.commit_sha }} {% endif %} {% if r.source_user %} {{ r.source_user }} {% endif %}
{# ── Summary + expandable details ────────────────────── #}
{# Pipeline / env summary #} {% if r.has_pipeline and r.pipeline_stages | length > 0 %} {# Pipeline icon #} {# Stage badges #} {% for stage in r.pipeline_stages %} {% if stage.stage_type == "deploy" %} {% if stage.status == "SUCCEEDED" %} {% elif stage.status == "RUNNING" %} {% elif stage.status == "QUEUED" %} {% elif stage.status == "FAILED" %} {% else %} {% endif %} {{ stage.environment }} {% endif %} {% endfor %} {# Done count #} {% set ns = namespace(done=0, total=0) %} {% for stage in r.pipeline_stages %} {% set ns.total = ns.total + 1 %} {% if stage.status == "SUCCEEDED" %}{% set ns.done = ns.done + 1 %}{% endif %} {% endfor %} {{ ns.done }}/{{ ns.total }} {% elif r.has_pipeline %} {# Pipeline exists but no stages yet #} {% set ns = namespace(all_done=true) %} {% for g in r.env_groups %}{% if g.status != "SUCCEEDED" %}{% set ns.all_done = false %}{% endif %}{% endfor %} {% if r.env_groups | length > 0 and ns.all_done %} Deployed {% else %} Queued {% endif %} {% elif r.env_groups | length > 0 %} {# No pipeline, show env groups #} {% for g in r.env_groups %} {% if g.status == "RUNNING" %} Deploying to {% elif g.status == "QUEUED" %} Queued for {% elif g.status == "FAILED" %} Failed on {% elif g.status == "SUCCEEDED" %} Deployed to {% endif %} {% for env in g.envs %} {{ env }} {% endfor %} {% endfor %} {% else %} Pending {% endif %} {# ── Release details ─────────────────────────────────── #}
{% if r.description %}

{{ r.description }}

{% endif %}
{{ r.slug }} {% if r.version %} {{ r.version }} {% endif %}
{# ── Pipeline stages ─────────────────────────────────── #} {% if r.has_pipeline and r.pipeline_stages | length > 0 %}
{% for stage in r.pipeline_stages %}
{# Status icon #} {% if stage.status == "SUCCEEDED" %} {% elif stage.status == "RUNNING" %} {% elif stage.status == "QUEUED" %} {% elif stage.status == "FAILED" %} {% else %} {% endif %} {# Stage label #} {% if stage.stage_type == "deploy" %} {% if stage.status == "SUCCEEDED" %}Deployed to{% elif stage.status == "RUNNING" %}Deploying to{% elif stage.status == "QUEUED" %}Queued for{% elif stage.status == "FAILED" %}Failed on{% elif stage.status == "TIMED_OUT" %}Timed out on{% elif stage.status == "CANCELLED" %}Cancelled{% else %}Deploy to{% endif %} {{ stage.environment }} {% elif stage.stage_type == "wait" %} {% if stage.status == "SUCCEEDED" %}Waited{% elif stage.status == "RUNNING" %}Waiting{% elif stage.status == "FAILED" %}Wait failed{% elif stage.status == "CANCELLED" %}Wait cancelled{% else %}Wait{% endif %} {% if stage.duration_seconds %}{{ stage.duration_seconds }}s{% endif %} {% endif %} {# Elapsed time #} {% if stage.started_at %} {{ ts(stage.started_at) }} {% endif %} pipeline
{% endfor %}
{% endif %} {# ── Destinations ─────────────────────────────────────── #} {% if r.destinations | length > 0 %} {% for dest in r.destinations %}
{# Status icon #} {% if dest.status == "SUCCEEDED" %} {% elif dest.status == "RUNNING" or dest.status == "ASSIGNED" %} {% elif dest.status == "QUEUED" %} {% elif dest.status == "FAILED" %} {% else %} {% endif %} {{ dest.environment }} {{ dest.name }} {% if dest.status == "SUCCEEDED" %} Deployed {% elif dest.status == "RUNNING" %} Deploying {% elif dest.status == "QUEUED" %} Queued{% if dest.queue_position %} #{{ dest.queue_position }}{% endif %} {% elif dest.status == "FAILED" %} Failed {% endif %} {% if dest.completed_at %} {% endif %}
{% endfor %} {% endif %}
{% endfor %}
{% else %}

No release activity yet.

Releases you create will appear here with their deployment status.

{% endif %}