provide estimates, format dates better

This commit is contained in:
2021-09-16 19:20:43 +10:00
parent 5db1cf9e32
commit c59e23efda
3 changed files with 15 additions and 5 deletions

View File

@@ -11,7 +11,11 @@
<dt class="col-2">Start Time:</dt>
<dd class="col-10">{{job.start_time|vicdate}}</dt>
<dt class="col-2">Duration:</dt>
<dd class="col-10">{{duration}}</dd>
<dd class="col-10">{{duration}}
{% if estimate != None %}
(estimated time remaining: {{estimate}})
{% endif %}
</dd>
<dt class="col-2">Last Update:</dt>
<dd class="col-10">{{job.last_update|vicdate}}</dd>
<dt class="col-2">Current state:</dt>

View File

@@ -23,9 +23,9 @@
{% endif %}
{% if job.state == "Withdrawn" %}
row+= '</td><td>{{job.start_time}}</i></td><td>'
row+= '</td><td>{{job.start_time|vicdate}}</i></td><td>'
{% else %}
row+= '</td><td>{{job.start_time}}</td><td>'
row+= '</td><td>{{job.start_time|vicdate}}</td><td>'
{% endif %}
{% if job.pa_job_state != "Completed" %}
{% if job.num_files and job.num_files > 0 %}
@@ -43,7 +43,7 @@
{% endif %}
active_rows.push(row)
{% else %}
row += '{{job.last_update}}</td></td></tr>'
row += '{{job.last_update|vicdate}}</td></td></tr>'
completed_rows.push(row)
{% endif %}
{% endfor %}