diff --git a/bookwyrm/models/import_job.py b/bookwyrm/models/import_job.py index 6bca57f88..61b818fe7 100644 --- a/bookwyrm/models/import_job.py +++ b/bookwyrm/models/import_job.py @@ -33,7 +33,7 @@ class ImportJob(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE) created_date = models.DateTimeField(default=timezone.now) - task_id = models.CharField(max_length=100, null=True) + task_id = models.CharField(max_length=100, null=True) # TODO: deprecated include_reviews = models.BooleanField(default=True) mappings = models.JSONField() complete = models.BooleanField(default=False) diff --git a/bookwyrm/templates/import/import_status.html b/bookwyrm/templates/import/import_status.html index 91e48e34e..029b081d7 100644 --- a/bookwyrm/templates/import/import_status.html +++ b/bookwyrm/templates/import/import_status.html @@ -6,116 +6,42 @@ {% block title %}{% trans "Import Status" %}{% endblock %} {% block content %}{% spaceless %} -
- {% trans "Import still in progress." %}
-
- {% trans "(Hit reload to update!)" %}
-
- Line {{ item.index }}: - {{ item.data.Title }} by - {{ item.data.Author }} -
-- {{ item.fail_reason }}. -
-- {% trans "Book" %} + {% trans "Row" %} | {% trans "Title" %} @@ -124,16 +50,16 @@ {% trans "Author" %} | + {% trans "Book" %} + | ++ {% trans "Status" %} |
---|---|---|---|
- {% if item.book %} - - {% include 'snippets/book_cover.html' with book=item.book cover_class='is-h-s' size='small' %} - - {% endif %} + {{ item.index }} | {{ item.data.Title }} @@ -143,15 +69,34 @@ | {% if item.book %} - - {% trans "Imported" %} + + {% include 'snippets/book_cover.html' with book=item.book cover_class='is-h-s' size='small' %} + + {% endif %} + | ++ {% if item.book %} + + {% trans "Imported" %} + + {% elif item.fail_reason %} + + + {{ item.fail_reason }} + {% else %} + + {% trans "Pending" %} {% endif %} |