moviewyrm/bookwyrm/templates/snippets/book_cover.html

15 lines
442 B
HTML
Raw Normal View History

2020-12-13 02:25:04 +00:00
{% load bookwyrm_tags %}
2020-09-29 21:11:55 +00:00
<div class="cover-container is-{{ size }}">
2020-03-15 22:41:23 +00:00
{% if book.cover %}
<img class="book-cover" src="/images/{{ book.cover }}" alt="{{ book.alt_text }}">
2020-03-15 22:41:23 +00:00
{% else %}
2020-09-29 21:11:55 +00:00
<div class="no-cover book-cover">
<img class="book-cover" src="/static/images/no_cover.jpg" alt="No cover">
2020-09-29 20:11:52 +00:00
<div>
<p>{{ book.title }}</p>
2020-12-17 20:30:49 +00:00
<p>({{ book.edition_info }})</p>
2020-09-29 20:11:52 +00:00
</div>
2020-03-15 22:41:23 +00:00
</div>
{% endif %}
2020-09-29 21:11:55 +00:00
</div>