{% extends "baseprojectbuildspage.html" %} {% load projecttags %} {% load humanize %} {% block extraheadcontent %} {% endblock %} {% block projectinfomain %} {% with mrb_type='project' %} {% include "mrb_section.html" %} {% endwith %}

{% if request.GET.filter and objects.paginator.count > 0 or request.GET.search and objects.paginator.count > 0 %} {{objects.paginator.count}} project build{{objects.paginator.count|pluralize}} found {%elif request.GET.filter and objects.paginator.count == 0 or request.GET.search and objects.paginator.count == 0 %} No project builds found {%else%} All project builds {%endif%}

{% if objects.paginator.count == 0 %} {% if request.GET.filter or request.GET.search %}
{% if request.GET.search %}{% endif %}
{% else %}

This project has no builds.

{% endif %} {% else %} {% include "basetable_top.html" %} {% for build in objects %} {# if we have a build, just display it #} {%if build.outcome == build.SUCCEEDED%}{%elif build.outcome == build.FAILED%}{%else%}{%endif%} {% if build.project %}   {% endif %} {% for t in build.target_set.all %} {% if t.task %} {{t.target}}:{{t.task}} {% else %} {{t.target}} {% endif %}
{% endfor %} {{build.machine}} {{build.started_on|date:"d/m/y H:i"}} {{build.completed_on|date:"d/m/y H:i"}} {% query build.task_build outcome=4 order__gt=0 as exectask%} {% if exectask.count == 1 %} {{exectask.0.recipe.name}}.{{exectask.0.task_name}} {% elif exectask.count > 1%} {{exectask.count}} task{{exectask.count|pluralize}} {%endif%} {% if build.errors.count %} {{build.errors.count}} error{{build.errors.count|pluralize}} {%endif%} {% if build.warnings.count %}{{build.warnings.count}} warning{{build.warnings.count|pluralize}}{%endif%} {{build.timespent_seconds|sectohms}} {% if build.outcome == build.SUCCEEDED %} {{fstypes|get_dict_value:build.id}} {% endif %} {% endfor %} {% include "basetable_bottom.html" %} {% endif %} {% endblock %}