{% extends "layout.html" %} {% from "_helpers.html" import build_href_from_sql, build_state, build_state_text, copr_url %} {% block title %}Migration Report{% endblock %} {% block header %}Migration Report{% endblock %} {% block breadcrumbs %} {% endblock %} {% block body %}
{% if user %} User Image

{{ user.name|capitalize }}'s Migration

{% if (user and user.name == g.user.name) %} {% endif %} {% else %}

Migration of @{{ group.name }} Group

FAS details | View Members

{% endif %} {% if g.user and ((user and user.name == g.user.name) or (group and g.user.can_build_in_group(group))) %}

Hello {{ g.user.name|capitalize }}, we have performed migration of Copr service to foo and therefore bar

{% endif %}
{% for copr in coprs |sort(attribute='group_id') %}

{{ copr.full_name }}

{% if copr.packages %} {% set packages_succeeded = copr.packages |selectattr('old_status', 'sameas', 1) |list %} {% set packages_other = copr.packages |rejectattr('old_status', 'sameas', 1) |sort(attribute='old_status') |list %} {% for package in packages_succeeded + packages_other %} {% endfor %}
Package Name State Before Migration State After Migration Build
{{ package.name }} {{ build_state_text(package.old_status | state_from_num) }} {{ build_state(package.last_build()) if package.last_build() else '-' }} {% if package.last_build() %} {{ package.last_build().id }} {% else %} - {% endif %}
{% else %}

No packages

{% endif %} {% endfor %} {% endblock %}