{% extends "scitex_storage/organize.html" %} {% load i18n scitex_static %} {% block extra_css %} {{ block.super }} {% endblock %} {% block scitex_app_content %}
{% include "scitex_storage/_app_header.html" %} {% if scope_notice %}

{{ scope_notice }}

{% endif %}

{% translate "Reorganize a folder" %}

{% translate "Preview a move plan, then apply it. Nothing is deleted, and every run can be undone." %}

{% csrf_token %} {% if pscope %}{% endif %}
{% if reorg_error %}{% endif %}
{% if reorg_summary %}

{% if reorg_applied %} {% translate "Applied" %} {% else %} {% translate "Preview (not applied)" %} {% endif %}

{{ reorg_folder_display }}

{% translate "Moves" %}
{{ reorg_summary.moves }}
{% translate "Duplicates set aside" %}
{{ reorg_summary.duplicates }}
{% translate "Temporary files set aside" %}
{{ reorg_summary.junk }}
{% translate "Dropped (set aside)" %}
{{ reorg_summary.drops }}
{% translate "Folder links" %}
{{ reorg_summary.links }}
{% translate "Conflicts" %}
{{ reorg_summary.conflicts }}
{% if reorg_plan.conflicts %} {% endif %}
{% for op in reorg_rows %} {% endfor %}
{% translate "Action" %} {% translate "From" %} {% translate "To / reason" %}
{% if op.kind == "move" %} {% translate "Move" %} {% elif op.kind == "link" %} {% translate "Link" %} {% else %} {% translate "Set aside" %} {% endif %} {{ op.src }} {% if op.kind == "archive" %} {{ op.reason }} {% else %} {{ op.dst }} {% endif %}
{% if reorg_truncated %}

{% blocktranslate with n=reorg_rows|length %}Showing the first {{ n }} operations; the counts above cover the whole plan.{% endblocktranslate %}

{% endif %} {% if reorg_applied %}
{% translate "Reorganization applied." %}

{% translate "Run:" %} {{ reorg_applied }}

{% csrf_token %} {% if pscope %}{% endif %}
{% elif not reorg_plan.conflicts %}
{% csrf_token %} {% if pscope %}{% endif %} {% for key, value in reorg_form.items %}{% endfor %}
{% endif %}
{% endif %} {% if reorg_restored %}
{% translate "Run undone." %} {{ reorg_restored }}
{% endif %}
{% endblock %}