{% load humanize i18n hq %}

{% hq_icon "git-commit-horizontal" %} {% translate "Deployment" %}

{% translate "What the image now running in this container was built from" %}

{% translate "Commit" %}
{% if commit_url %} {{ commit_short }}{% hq_icon "external-link" %} {% elif commit_short %} {{ commit_short }} {% else %} {% endif %}
{% comment %} The half `git describe --abbrev=0` throws away. It belongs next to the commit rather than beside the version: it qualifies which commit is deployed, not what the release is called. {% endcomment %}
{% translate "Ahead of tag" %}
{% if commits_since_tag is None %} {% elif commits_since_tag %} +{{ commits_since_tag }} {% blocktranslate with tag=version %}past {{ tag }}{% endblocktranslate %} {% else %} {% translate "on the tag" %} {% endif %}
{% translate "Subject" %}
{{ subject|default:"—" }}
{% translate "Committed" %}
{% if committed_at %} {{ committed_at|date:"j M Y H:i" }} {{ committed_at|naturaltime }} {% else %} {% endif %}
{% translate "Built" %}
{% if built_at %} {{ built_at|date:"j M Y H:i" }} {{ built_at|naturaltime }} {% else %} {% endif %}
{% translate "Deployed" %}
{% if deployed_at %} {{ deployed_at|date:"j M Y H:i" }} {{ deployed_at|naturaltime }} {% else %} {% endif %}
{% if pipeline %} {% comment %} The commit → build → deploy span, drawn to scale. The segments are sized by JS from data-seconds rather than a style attribute; the CSS min-width keeps a near-instant stage from vanishing, and a segment too thin to read still has its figure in the legend below. {% endcomment %}
{% translate "Path to production" %} {% blocktranslate with total=pipeline.total %}{{ total }} in total{% endblocktranslate %}
{% for stage in pipeline.stages %}
{% endfor %}
{% for stage in pipeline.stages %} {{ stage.label }} {{ stage.text }} {% endfor %}
{% endif %} {% comment %} Said plainly, because the number is only as honest as its source: the container start time is stamped by the entrypoint, so a restart or a reboot moves it without anything having been released. {% endcomment %}

{% hq_icon "info" %} {% translate "“Deployed” is the container start time — a restart or a reboot moves it with nothing having been released." %}