{% extends "base.html" %} {% block main_content %}

{{page_title}}

Duplicate files have been detected. They have the same binary content, but either have a different name, there are 3 or more copies or are stored in two different directories. Choose between the options below. NOTE: after you click 'Delete Duplicates', the files / directories in red will be deleted from the file system, those in green will remain
 duplicates at a time
{# pass this through so that the back-end can delete this message when it rm_dups #} {% set page=namespace(cnt=0) %}
Choose between these files:
{% for dups in per_file_dups %} {% set outer_loop=loop.index %}
{% for dup in dups %} {{dup.d}}/{{dup.f}} {% if loop.index < dups|length %} or {% else %} {% endif %} {% endfor %}
{% set page.cnt = page.cnt + 1 %} {% if page.cnt == pagesize %} {% break %} {% endif %} {% endfor %} {% if page.cnt < pagesize %}
Choose path to KEEP (same file names in 2 different directories):
{% for dup in per_path_dups %}
{{dup.count}} duplicates in: {{dup.d1}} or {{dup.d2}}
{% set page.cnt = page.cnt + 1 %} {% if page.cnt == pagesize %} {% break %} {% endif %} {% endfor %} {% endif %}
{% endblock main_content %} {% block script_content %} {% endblock script_content %}