moviewyrm/fedireads/templates/snippets/book_cover.html

13 lines
442 B
HTML
Raw Normal View History

{% load fr_display %}
2020-03-15 22:41:23 +00:00
{% if book.cover %}
<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 %}
<div class="no-cover book-cover {{ size }}">
<img class="book-cover {{ size }}" src="/static/images/no_cover.jpg" alt="No cover">
2020-03-15 22:41:23 +00:00
<div>
<p class="title">{{ book.title }}</p>
<p>({{ book|edition_info }})</p>
2020-03-15 22:41:23 +00:00
</div>
</div>
{% endif %}