From 1dc8477758139e02526f3acf38b9445e1ed64695 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Wed, 3 Mar 2021 22:05:58 +1100 Subject: [PATCH] first pass of paginated dups, with drop-down (non-functional), but otherwise pages work - presume if I clicked it to delete, it would, but then I would need to re-do check_dups OR optimise and get it to come back to dups with next page -- probably preferred -- BUT, need to keep job state between page loads? --- templates/dups.html | 78 ++++++++++++++++++++++++++++++--------------- 1 file changed, 53 insertions(+), 25 deletions(-) diff --git a/templates/dups.html b/templates/dups.html index 6df0968..b7d527d 100644 --- a/templates/dups.html +++ b/templates/dups.html @@ -2,12 +2,29 @@

{{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 + 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
- -
{{overall_dup_sets}} sets/dirs of files containing {{overall_dup_cnt}} files
+ system, those in green will remain +
+
+
+
+ + +  duplicates at a time +
+
+
{% endfor %} + {% set page.cnt = page.cnt + 1 %} + {% if page.cnt == page_size %} + {% break %} + {% endif %} {% 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 %} - - + {% if page.cnt < page_size %} +
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 == page_size %} + {% break %} + {% endif %} + {% endfor %} + {% endif %} + @@ -59,15 +87,15 @@