{% from "_helpers.html" import copr_url, build_state %} {% macro packages_table(packages) %} {% if packages %} {% for package in packages %} {% set build = package.builds[-1] if package.builds else empty_build %} {% endfor %}
Name Last Build Version Last Build Submitted Last Build Status Automatic Build Actions
{{ package.name }} {% if build.pkg_version %} {{ build.pkg_version }} {% else %} - {% endif %} {% if build.submitted_on %} {{ build['submitted_on']|time_ago() }} ago {% else %} - {% endif %} {{ build_state(build) }} {% if package.webhook_rebuild %} Enabled {% else %} Disabled {% endif %} {% if g.user and g.user.can_build_in(copr) %} Rebuild {% else %} - {% endif %}
{% else %}

No packages so far

{% endif %} {% endmacro %}