{% load static %} {% load projecttags %} {% load project_url_tag %} {% load humanize %} {% if mru %} {% if mrb_type == 'project' %}

Latest project builds {% if project.is_default %} {% endif %}

{% else %} {% endif %}
{% for build in mru %}
{% if mrb_type != 'project' %} {% endif %}
{% if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %}
{% if build.completed_on|format_build_date %} {{build.completed_on|date:'d/m/y H:i'}} {% else %} {{ build.completed_on|date:'H:i' }} {% endif %}
{% endif %} {% if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %}
Build time: {{ build.timespent_seconds|sectohms }} {% if build.project.is_default %} {% else %} Rebuild {% endif %}
{% endif %} {% if build.outcome == build.IN_PROGRESS %}
{{build.completeper}}% of tasks complete {# No build cancel for command line builds project #} {% if build.project.is_default %} {% else %} Cancel {% endif %}
{% endif %} {# end if in progress #} {% if build.outcome == build.CANCELLED %}
Build cancelled
{% endif %}
{% endfor %}
{% endif %}