From 49e0a5a797469a29a19f1e54661274eea26b206b Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sat, 13 Feb 2021 20:21:26 +1100 Subject: [PATCH] now have a partial fix_dups path, it shows the content in a much more reasonable manner, and allows the GUI to select the files/paths to keep, HOWEVER, the form POST is not enabled, and I still need to process the form data -- right now, now sure how I know which files to delete vs keep -> will need hidden vars of options, not just the to_keep - then process them --- templates/dups.html | 72 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 templates/dups.html diff --git a/templates/dups.html b/templates/dups.html new file mode 100644 index 0000000..0c757e8 --- /dev/null +++ b/templates/dups.html @@ -0,0 +1,72 @@ +{% 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 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

+ + +
+
+ {% for dups in per_file_dups %} + {% set outer_loop=loop.index %} +
+
Choose between these files:
+ {% for dup in dups %} + {{dup.d}}/{{dup.f}} + {% if loop.index < dups|length %} + or + {% endif %} + + {% endfor %} +
+ {% endfor %} + + {% for dup in per_path_dups %} +
+
{{dup.count}} duplicate files (same file names in 2 different directories). Choose path to KEEP:
+ {{dup.d1}} or + {{dup.d2}} + + +
+ {% endfor %} + + +
+
+
+{% endblock main_content %} +{% block script_content %} + +{% endblock script_content %}