renamed importlog* to job* -- in db, python and html

This commit is contained in:
2021-01-14 21:47:12 +11:00
parent 4df3274624
commit e884accd0a
5 changed files with 21 additions and 21 deletions

22
templates/jobs.html Normal file
View File

@@ -0,0 +1,22 @@
{% extends "base.html" %}
{% block main_content %}
<h3>{{page_title}}</h3>
<table id="import_tbl" class="table table-striped table-sm" data-toolbar="#toolbar" data-search="true">
<thead>
<tr class="thead-light"><th>Import Id</th><th>Import Started</th><th>Passes</th></tr>
</thead>
<tbody>
{% for imp in imports %}
<tr><td><a href="{{url_for('importlog', id=imp.id )}}">{{imp.id}}</td><td>{{imp.start_time}}</td>
<td>
<div class="progress">
{% set prog=(imp.current_pass/imp.num_passes*100)|round|int %}
<div class="progress-bar" role="progressbar" style="width: {{prog}}%;" aria-valuenow="{{prog}}" aria-valuemin="0" aria-valuemax="100">{{imp.current_pass}} of {{imp.num_passes}}</div>
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock main_content %}