{% from "coprs/detail/_builds_forms.html" import copr_build_cancel_form, copr_build_repeat_form, copr_build_delete_form %} {% macro builds_table(builds) %} {% if builds %} {% for build in builds %} {% if g.user %} {% else %} {% endif %} {% endfor %}
Id Submitted on Submitted by Started on Ended on State
{{ build.id }}{{ g.user.localized_time(build.submitted_on) }}{{ build.submitted_on|date_from_secs }}{{ build.user.name }} {{ build.started_on|date_from_secs or 'Not yet' }} {{ build.ended_on|date_from_secs or 'Not yet' }} {{ build.state }}
{% if g.user and g.user == build.user %} {{ copr_build_cancel_form(build) }} {% endif %} {% if g.user and g.user.can_build_in(copr) %} {{ copr_build_repeat_form(build) }} {% endif %} {% if g.user and g.user == build.user %} {{ copr_build_delete_form(build) }} {% endif %}
{% if build.results %}

Results:

{{ build.results }} {% else %}

No results yet.

{% endif %}

Package URLs:

{% if build.pkgs is not none %}{% for pkg in build.pkgs.split() %}{{ pkg }} {% endfor %}{% endif %}
{% else %}

No builds so far

{% endif %} {% endmacro %}