diff --git a/templates/dups.html b/templates/dups.html index bbffef9..0a1a9a2 100644 --- a/templates/dups.html +++ b/templates/dups.html @@ -1,6 +1,5 @@ {% extends "base.html" %} {% block main_content %}
-

{{page_title}}

@@ -129,23 +128,33 @@ {% endif %} {% set count=namespace( del=0, keep=0 ) %} - {% if page.cnt < pagesize %} - {% for dup in DD.per_path_dups %} - {% if DD.preferred_path[dup.did1] or DD.preferred_path[dup.did2] %} - - - {% if DD.preferred_path[dup.did1] %} - - {% else %} - - {% endif %} - {% set count.keep = count.keep + 1 %} + {% for dup in DD.per_path_dups %} + {% if DD.preferred_path[dup.did1] or DD.preferred_path[dup.did2] %} + + + {% if DD.preferred_path[dup.did1] %} + {% else %} + + {% endif %} + {% set count.keep = count.keep + 1 %} + {% elif page.cnt <= pagesize %}
Choose path to KEEP (same file names in 2 different directories):
{{dup.count}} duplicates in: - {{dup.d1}} or - {{dup.d2}} + {% if dup.d1 == "" %} + {% set d1="/" %} + {% else %} + {% set d1=dup.d1 %} + {% endif %} + {% if dup.d2 == "" %} + {% set d2="/" %} + {% else %} + {% set d2=dup.d2 %} + {% endif %} + + {{d1}} or + {{d2}}
- {% endif %} {% set page.cnt = page.cnt + 1 %} - {% if page.cnt == pagesize %} - {% break %} - {% endif %} - {% endfor %} - {% endif %} + {% endif %} + {% endfor %} {% if count.keep %}
{% set auto.str = auto.str + "
  • Keeping={}, Deleting={} paths of duplicates
  • ".format(count.keep, count.keep) %}