mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 03:21:05 +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>
|
||||
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!)
|
||||
|
|
Loading…
Reference in a new issue