renamed importlog* to job* -- in db, python and html
This commit is contained in:
22
templates/jobs.html
Normal file
22
templates/jobs.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user