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

@ -1,5 +1,5 @@
{% load fr_display %}
<img class="book-cover {{ size }}" src="{% if book.cover %}/images/{{ book.cover }}{% else %}/static/images/no_cover.jpg{% endif %}">
{% include 'snippets/book_cover.html' with book=book %}
<p class="title">
<a href="/book/{{ book.openlibrary_key }}">{{ book.data.title }}</a>
</p>