{% from "coprs/detail/_builds_forms.html" import copr_build_cancel_form, copr_build_repeat_form, copr_build_delete_form %} {% from "coprs/detail/_build_states.html" import build_states %} {% from "_helpers.html" import build_href_from_sql, build_state, initialize_datatables, copr_url %} {% from "_helpers.html" import pagination_form with context %} {% macro builds_table(builds, print_possible_states=True, serverside_pagination=None) %} {% for build in builds %} {% if loop.first %} {% if not serverside_pagination %} {% endif %} {% if copr and g.user and g.user.can_edit(copr) %} {% endif %} {% endif %} {% if copr and g.user and g.user.can_edit(copr) %} {% endif %} {% if loop.last %}
Build ID Package Name Package Version Submitted Build Time Status
{{ build.id }} {% if build.package_name %} {{ build.package_name }} {% else %} - {% endif %} {% if build.pkg_version %} {{ build.pkg_version}} {% else %} - {% endif %} {{ build.submitted_on|time_ago() }} ago {{ build.started_on|time_ago(build.ended_on) }} {{ build_state(build) }}
{% if not serverside_pagination %} {{ initialize_datatables() }} {% else %} {{ pagination_form(serverside_pagination) }} {% endif %} {% if print_possible_states %} {{ build_states() }} {% endif %} {% endif %} {% else %} {% if copr %} {{ no_builds_window() }} {% else %} {# When displaying batches, there is no `copr` variable #}

No builds found

{% endif %} {% endfor %} {% endmacro %} {% macro no_builds_window() %}
{% if not current_dirname %}

No Builds in This Project

Click on the New Build button to submit your first build.

You can also set up automatic builds directly from your git. This can be done on the Packages view.

{% if g.user and g.user.can_build_in(copr) %}
Submit a New Build
{% endif %} {% else %}

No builds in this project directory.

{% endif %}
{% endmacro %}