minor clean up on headings, alerts at top of /fix_dups route
This commit is contained in:
2
files.py
2
files.py
@@ -236,8 +236,6 @@ def fix_dups():
|
|||||||
dup_cnt += 1
|
dup_cnt += 1
|
||||||
|
|
||||||
per_path_dups.append({'count': dup_cnt, 'd1': d1, 'd2': d2 })
|
per_path_dups.append({'count': dup_cnt, 'd1': d1, 'd2': d2 })
|
||||||
st.SetAlert("warning")
|
|
||||||
st.SetMessage("Not Yet!")
|
|
||||||
return render_template("dups.html", per_file_dups=per_file_dups, per_path_dups=per_path_dups)
|
return render_template("dups.html", per_file_dups=per_file_dups, per_path_dups=per_path_dups)
|
||||||
|
|
||||||
@app.route("/move_files", methods=["POST"])
|
@app.route("/move_files", methods=["POST"])
|
||||||
|
|||||||
@@ -109,6 +109,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if GetJM_Message() != None %}
|
{% if GetJM_Message() != None %}
|
||||||
{% set msg=GetJM_Message() %}
|
{% set msg=GetJM_Message() %}
|
||||||
|
{% if url_for(request.endpoint) != "/fix_dups" %}
|
||||||
<div class="row alert alert-{{msg.alert}}">
|
<div class="row alert alert-{{msg.alert}}">
|
||||||
{% if msg.job_id %}
|
{% if msg.job_id %}
|
||||||
<a href="{{url_for('joblog', id=msg.job_id)}}">Job #{{msg.job_id}}</a>:
|
<a href="{{url_for('joblog', id=msg.job_id)}}">Job #{{msg.job_id}}</a>:
|
||||||
@@ -120,6 +121,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% block main_content %}
|
{% block main_content %}
|
||||||
{% endblock main_content %}
|
{% endblock main_content %}
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
{% extends "base.html" %} {% block main_content %}
|
{% extends "base.html" %} {% block main_content %}
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<h3 class="offset-lg-2">{{page_title}}</h3>
|
<h3 class="offset-lg-2">{{page_title}}</h3>
|
||||||
<p>Duplicate files have been detected. They have the same binary content,
|
<div class="alert alert-info">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 or are stored in two different
|
||||||
directories. Choose between the options below. NOTE: after you click
|
directories. Choose between the options below. NOTE: after you click
|
||||||
'Delete Duplicates', the files / directories in red will be deleted from the file
|
'Delete Duplicates', the files / directories in red will be deleted from the file
|
||||||
system, those in green will remain</p>
|
system, those in green will remain</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
let D=[]
|
let D=[]
|
||||||
|
|||||||
Reference in New Issue
Block a user