Display fail reasons and reorder columns.

This commit is contained in:
Adam Kelly 2020-04-25 11:43:44 +01:00
parent 2006b2fbce
commit 8c9b499cda
1 changed files with 9 additions and 6 deletions

View File

@ -29,6 +29,7 @@
<table> <table>
<tr> <tr>
<th> <th>
Book
</th> </th>
<th> <th>
Title Title
@ -37,13 +38,16 @@
Author Author
</th> </th>
<th> <th>
Book
</th> </th>
</tr> </tr>
{% for item in items %} {% for item in items %}
<tr> <tr>
<td> <td>
{% if item.book %}✓{% endif %} {% if item.book %}
<a href="{{ item.book.absolute_id }}">
{% include 'snippets/book_cover.html' with book=item.book size='small' %}
</a>
{% endif %}
</td> </td>
<td> <td>
{{ item.data|dict_key:'Title' }} {{ item.data|dict_key:'Title' }}
@ -52,10 +56,9 @@
{{ item.data|dict_key:'Author' }} {{ item.data|dict_key:'Author' }}
</td> </td>
<td> <td>
{% if item.book %} {% if item.book %}✓
<a href="{{ item.book.absolute_id }}"> {% elif item.fail_reason %}
{% include 'snippets/book_cover.html' with book=item.book size='small' %} {{ item.fail_reason }}
</a>
{% endif %} {% endif %}
</td> </td>
</tr> </tr>