if we have current_file_num > 0 but dont know total in num_files, at least show count to show progress

This commit is contained in:
2021-01-29 00:02:56 +11:00
parent e88a6f317c
commit e3dcce4a53

View File

@@ -45,6 +45,9 @@
<div class="progress" style="height:80%">
<div class="progress-bar bg-info" role="progressbar" style="width: {{prog}}%;" aria-valuenow="{{prog}}" aria-valuemin="0" aria-valuemax="100">{{job.current_file_num}} of {{job.num_files}} - {{prog}}%</div>
</div>
{% elif job.num_files == 0 and job.current_file_num > 0 %}
<label class="form-control-plaintext
col-lg-10">{{job.current_file_num}} of Unknown Total</label>
{% else %}
<label class="form-control-plaintext col-lg-10">N/A</label>
{% endif %}