{# One deployment attempt per row, shared by the global history, a domain's history and the application page's own section, so the three can never disagree about what an attempt looks like. The rail carries the outcome; the meta carries the four facts an operator scans for: what triggered it, which commit, how long it took and when. For a failed attempt the note is the first line of the error, verbatim. The row links to the detail, which is where the captured build log lives. #} {% import "_macros.html" as m %}
{% for row in deploy_rows %} {# Inside one domain's own page the domain as a title says nothing; the commit is what distinguishes one attempt from the next there. #} {% set title = row.domain if not history_domain else row.commit %} {% set facts = [("commit", row.commit), ("trigger", row.trigger), ("took", row.duration), ("started", row.started)] if not history_domain else [("trigger", row.trigger), ("took", row.duration), ("started", row.started)] %} {% call m.row(title, row.state, facts, row.href, "deployment-" ~ row.id, row.note, row.status) %} Open {% endcall %} {% endfor %}