moviewyrm/bookwyrm/templates/snippets/book_cover.html

17 lines
534 B
HTML
Raw Normal View History

{% load fr_display %}
2020-03-15 22:41:23 +00:00
{% if book.cover %}
2020-09-29 20:11:52 +00:00
<div class="cover-container">
<img class="book-cover {{ size }}" src="/images/{{ book.cover }}" alt="{% include 'snippets/cover_alt.html' with book=book %}">
</div>
2020-03-15 22:41:23 +00:00
{% else %}
2020-09-29 20:11:52 +00:00
<div class="cover-container">
<div class="no-cover book-cover {{ size }}">
<img class="book-cover {{ size }}" src="/static/images/no_cover.jpg" alt="No cover">
<div>
<p>{{ book.title }}</p>
<p>({{ book|edition_info }})</p>
</div>
2020-03-15 22:41:23 +00:00
</div>
</div>
{% endif %}