{%- from 'pipeline.html' import pipeline -%} GoCD Dashboard {%- for group_batch in groups|batch(4) %}
{%- for group in group_batch %}

{{ group.name }}

{%- for p in group.pipelines %} {{ pipeline(p, group.passed()) }} {%- endfor %}
{%- endfor %}
{%- endfor %}