{% set pipelines = pipelines if pipelines is defined else (state.pipelines if state else []) %} {% if pipelines %} {% set running = [] %}{% set failed = [] %}{% set ok = [] %} {% for p in pipelines %} {% if p.status == "running" %}{% if running.append(1) %}{% endif %} {% elif p.status == "failed" %}{% if failed.append(1) %}{% endif %} {% elif p.status == "success" %}{% if ok.append(1) %}{% endif %} {% endif %} {% endfor %}
{{ state.pipelines | length }} total
{% if failed %}
{{ failed | length }} failed
{% endif %} {% if running %}
{{ running | length }} running
{% endif %} {% if ok %}
{{ ok | length }} success
{% endif %}
{% for p in pipelines %} {% endfor %}
RepoRefStatusCreated
{{ p.repo_name }} {{ p.ref }} {{ p.status }} {{ p.created_at | timeago }}
{% else %}

No pipelines.

{% endif %}