{% extends "layout.html" %} {% block title_name %} - {{ _('admin')|uc_first }}{% endblock %} {% block breadcrumb %} {{ [[_('admin'), 'admin_index'], _('orphans')]|crumb }} {% endblock %} {% block content %}
{{ 'Data_integrity'|manual_link }}
{% if tables['orphans'].rows and 'admin'|is_authorized %}
{{ _('delete orphans')|button(url_for('admin_orphans_delete', parameter='orphans'), onclick="return confirm('" + _('delete orphans')|uc_first + "?')") }}
{% endif %} {% if tables['orphans'].rows %} {{ tables['orphans'].display('orphans')|safe }} {% else %} {{ _('Congratulations, everything looks fine!') }} {% endif %}
{% if tables['unlinked'].rows %} {{ tables['unlinked'].display('unlinked')|safe }} {% else %} {{ _('Congratulations, everything looks fine!') }} {% endif %}
{% if tables['nodes'].rows and 'admin'|is_authorized %}
{{ _('delete types')|button(url_for('admin_orphans_delete', parameter='types'), onclick="return confirm('" + _('delete types')|uc_first + "?')") }}
{% endif %} {% if tables['nodes'].rows %} {{ tables['nodes'].display('nodes')|safe }} {% else %} {{ _('Congratulations, everything looks fine!') }} {% endif %}
{% if tables['missing_files'].rows %} {{ tables['missing_files'].display('missing_files')|safe }} {% else %} {{ _('Congratulations, everything looks fine!') }} {% endif %}
{% if tables['orphaned_files'].rows and 'admin'|is_authorized %}
{{ _('delete all files')|button(url_for('admin_file_delete', filename='all'), onclick="return confirm('" + _('delete all files without corresponding entities?')|uc_first + "')") }}
{% endif %} {% if tables['orphaned_files'].rows %} {{ tables['orphaned_files'].display('orphaned_files')|safe }} {% else %} {{ _('Congratulations, everything looks fine!') }} {% endif %}
{% if tables['circular'].rows %} {{ tables['circular'].display('circular')|safe }} {% else %} {{ _('Congratulations, everything looks fine!') }} {% endif %}
{% endblock %}