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