Snippet for book covers

Fixes #20
This commit is contained in:
Mouse Reeve
2020-02-18 23:03:04 -08:00
parent d77f1b9882
commit bca0a1f32c
3 changed files with 3 additions and 2 deletions

View File

@ -89,7 +89,7 @@
{% for book in shelf.books.all %}
<tr class="book-preview">
<td>
<img src="/images/{{ book.cover }}" class="book-cover small">
{% include 'snippets/book_cover.html' with book=book %}
</td>
<td>
<a href="/book/{{ book.openlibrary_key }}">{{ book.data.title }}</a>