Fixes reporting import task status

This commit is contained in:
Mouse Reeve 2020-11-12 13:09:29 -08:00
parent 4ccf1c4818
commit ffeed6047e

View file

@ -8,18 +8,17 @@
<p>
Import started: {{ job.created_date | naturaltime }}
</p>
{% if task.ready %}
{% if task.successful %}
<p>
Import completed: {{ task.date_done | naturaltime }}
</p>
{% elif task.failed %}
<div class="notification is-danger">TASK FAILED</div>
{{ task.info }}
{% endif %}
</div>
<div class="block">
{% if not task.ready and not task.failed %}
{% if task.status == 'PENDING' %}
Import still in progress.
<p>
(Hit reload to update!)