{% from "_helpers.html" import copr_url, build_state %} {% macro packages_table(packages) %} {% if packages %} {# packages here is not a package object #} {% for package in packages %} {% endfor %}
Name Last Build Version Last Build Submitted Last Build Status Automatic Build Actions
{{ package.name }} {% if package.pkg_version %} {{ package.pkg_version }} {% else %} - {% endif %} {% if package.submitted_on %} {{ package.submitted_on|time_ago() }} ago {% else %} - {% endif %} {{ build_state(package) }} {% 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 %}