moviewyrm/bookwyrm/templates/snippets/book_cover.html

14 lines
400 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.alt_text }}</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>