From 8c9b499cdad3bd58b3ba56439f0d59d62ee55b64 Mon Sep 17 00:00:00 2001 From: Adam Kelly Date: Sat, 25 Apr 2020 11:43:44 +0100 Subject: [PATCH] Display fail reasons and reorder columns. --- fedireads/templates/import_status.html | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/fedireads/templates/import_status.html b/fedireads/templates/import_status.html index 34abeb8fa..97b5dbffe 100644 --- a/fedireads/templates/import_status.html +++ b/fedireads/templates/import_status.html @@ -29,6 +29,7 @@ {% for item in items %}
+ Book Title @@ -37,13 +38,16 @@ Author - Book
- {% if item.book %}✓{% endif %} + {% if item.book %} + + {% include 'snippets/book_cover.html' with book=item.book size='small' %} + + {% endif %} {{ item.data|dict_key:'Title' }} @@ -52,10 +56,9 @@ {{ item.data|dict_key:'Author' }} - {% if item.book %} - - {% include 'snippets/book_cover.html' with book=item.book size='small' %} - + {% if item.book %}✓ + {% elif item.fail_reason %} + {{ item.fail_reason }} {% endif %}