mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 11:31:08 +00:00
Fixes reporting import task status
This commit is contained in:
parent
4ccf1c4818
commit
ffeed6047e
1 changed files with 2 additions and 3 deletions
|
@ -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!)
|
||||||
|
|
Loading…
Reference in a new issue