1
0
Fork 0

Generated import status rather than individual statuses.

This commit is contained in:
Adam Kelly 2020-03-25 14:14:38 +00:00
parent 323c7f8dbf
commit 8bf3225fc4
4 changed files with 45 additions and 26 deletions

View file

@ -2,26 +2,17 @@
{% block content %}
<div id="content">
<div>
<h1>Search results</h1>
{% for book in results %}
<div>
<a href="{{ book.absolute_id }}">
{% include 'snippets/book_cover.html' with book=book %}
</a>
{{ book.title }}
{{ book.author }}
{% include 'snippets/shelve_button.html' with book=book pulldown=True %}
</div>
{% endfor %}
<h1>The following books could not be imported: </h1>
<h1>Failures</h1>
<ul>
{% for book in failures %}
{% for item in failures %}
<li>
{{ book }}
{{ item }}
</li>
{% endfor %}
</ul>
<p>{{ success_count }} books imported successfully</p>
</div>
</div>
{% endblock %}