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
|
||||
|
||||
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)
|
||||
|
||||
@app.route("/move_files", methods=["POST"])
|
||||
|
||||
@@ -109,6 +109,7 @@
|
||||
{% endif %}
|
||||
{% if GetJM_Message() != None %}
|
||||
{% set msg=GetJM_Message() %}
|
||||
{% if url_for(request.endpoint) != "/fix_dups" %}
|
||||
<div class="row alert alert-{{msg.alert}}">
|
||||
{% if msg.job_id %}
|
||||
<a href="{{url_for('joblog', id=msg.job_id)}}">Job #{{msg.job_id}}</a>:
|
||||
@@ -119,6 +120,7 @@
|
||||
{% set dont_print=ClearJM_Message(msg.id) %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% block main_content %}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{% extends "base.html" %} {% block main_content %}
|
||||
<div class="container-fluid">
|
||||
<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
|
||||
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</p>
|
||||
system, those in green will remain</div>
|
||||
|
||||
<script>
|
||||
let D=[]
|
||||
|
||||
Reference in New Issue
Block a user