minor clean up on headings, alerts at top of /fix_dups route

This commit is contained in:
2021-02-13 20:30:21 +11:00
parent 49e0a5a797
commit 27e881ea8c
3 changed files with 11 additions and 11 deletions

View File

@@ -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"])

View File

@@ -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>:
@@ -120,6 +121,7 @@
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% block main_content %}
{% endblock main_content %}

View File

@@ -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=[]