{% load humanize %} {% load squad %}
{% for build in builds %}
{% with status=build.status %}
{{build.version}}
{{build.test_runs_total}} test runs {% if build.test_runs_completed > 0 %} {{build.test_runs_completed}} completed {% endif %} {% if build.test_runs_incomplete > 0 %} {{build.test_runs_incomplete}} incomplete {% endif %}
{% if status.has_tests %}
{{status.tests_total}} tests {% if status.tests_pass > 0 %} {{status.tests_pass}} pass {% endif %} {% if status.tests_skip > 0 %} {{status.tests_skip}} skip {% endif %} {% if status.tests_fail > 0 %} {{status.tests_fail}} fail {% endif %}
{% endif %} {% if status.has_metrics %}
{{status.metrics_summary|floatformat:3}}
{% endif %}
{% if status.last_updated %}
  {{status.last_updated|naturaltime}}
  {{status.last_updated}}
{% endif %}
{% endwith %}
{% endfor %}