2020-03-15 22:41:23 +00:00
|
|
|
{% if book.cover %}
|
2020-05-03 21:27:42 +00:00
|
|
|
<img class="book-cover {{ size }}" src="/images/{{ book.cover }}" alt="{% include 'snippets/cover_alt.html' with book=book %}">
|
2020-03-15 22:41:23 +00:00
|
|
|
{% else %}
|
2020-04-25 19:21:44 +00:00
|
|
|
<div class="no-cover book-cover {{ size }}">
|
2020-05-03 21:27:42 +00:00
|
|
|
<img class="book-cover {{ size }}" src="/static/images/no_cover.jpg" alt="{% include 'snippets/cover_alt.html' with book=book %}">
|
2020-03-15 22:41:23 +00:00
|
|
|
<div>
|
|
|
|
<p class="title">{{ book.title }}</p>
|
|
|
|
<p>{{ book.authors.first.name }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|