{% load humanize %} {% load squad %}
{% for project in projects %}
{% with status=project.status %}
{% if status.has_tests %}
{{status.tests_total}} total {% if status.tests_pass > 0 %} {{status.tests_pass}} passed {% endif %} {% if status.tests_skip > 0 %} {{status.tests_skip}} skipped {% endif %} {% if status.tests_fail > 0 %} {{status.tests_fail}} failed {% endif %}
{% endif %} {% if status.has_metrics %}
{{status.metrics_summary|floatformat:3}}
{% endif %}
{% if status.last_updated %}
  {{status.last_updated|naturaltime}}
  {{status.last_updated}}
{% endif %}
{% if project.description%}
{{project.description|urlize|truncatechars_html:140}} {% if project.description|length > 140 %} Show more {% endif %}
{% endif %} {% endwith %}
{% endfor %}