{% extends "admin/base.html" %} {% block primary_content_inner %} {% set c = report.counts %} {% set mode_names = {'dry-run': _('dry run'), 'apply': _('apply')} %} {% set status_names = {'replaced': _('replaced'), 'already_present': _('already present'), 'not_found': _('not found'), 'ambiguous': _('ambiguous'), 'error': _('error')} %}

← {{ _('Deprecated API migration') }}

{{ mode_names.get(report.mode, report.mode) }} · {{ report.started }}

{{ _('By %(user)s', user=report.user) }} · {{ c.datasets }} {{ _('datasets') }}, {{ c.replaced }} {{ _('replaced') }}, {{ c.already_present or 0 }} {{ _('already present (left unchanged)') }}, {{ c.not_found }} {{ _('not found') }}, {{ c.ambiguous }} {{ _('ambiguous') }}, {{ c.error }} {{ _('errors') }}; {{ c.patched }} {{ _('patched') }}, {{ c.failed }} {{ _('failed') }} · JSON

{{ _('Show') }}: {{ _('all') }} · {% for status in ['replaced', 'already_present', 'not_found', 'ambiguous', 'error'] %} {{ status_names[status] }}{% if not loop.last %} ·{% endif %} {% endfor %}

{% for row in rows %} {% else %} {% endfor %}
{{ _('Dataset') }}{{ _('Status') }}{{ _('Stored term') }}{{ _('New term / candidates') }}
{{ row.dataset }} {% if row.error %}
{{ row.error }}{% endif %}
{{ status_names.get(row.status, row.status) }}{% if row.patched %} ({{ _('patched') }}){% endif %} {{ row.old.subject }} {{ row.old.valueURI }} {% if row.new and row.new.subject %}{% if row.stripped %}{{ _('kept as plain text, scheme and URI removed') }}{% else %}{{ row.new.subject }} {{ row.new.valueURI }}{% endif %} {% elif row.candidates %}{{ row.candidates|join(', ') }}{% endif %}
{{ _('Nothing to show.') }}
{% endblock %} {% block secondary_content %} {% snippet 'admin/snippets/fdf_migration_help.html' %} {% endblock %}