moviewyrm/bookwyrm/templates/snippets/book_cover.html

30 lines
694 B
HTML
Raw Normal View History

2021-04-09 21:57:49 +00:00
{% spaceless %}
2020-12-13 02:25:04 +00:00
{% load bookwyrm_tags %}
2021-04-09 21:57:49 +00:00
{% load i18n %}
2020-09-29 21:11:55 +00:00
<div class="cover-container is-{{ size }}">
2021-04-09 21:57:49 +00:00
{% if book.cover %}
<img
class="book-cover"
src="/images/{{ book.cover }}"
alt="{{ book.alt_text }}"
title="{{ book.alt_text }}"
itemprop="thumbnailUrl"
>
{% else %}
<div class="no-cover book-cover">
<img
class="book-cover"
src="/static/images/no_cover.jpg"
alt="{% trans "No cover" %}"
>
<div>
<p>{{ book.alt_text }}</p>
</div>
2020-09-29 20:11:52 +00:00
</div>
2021-04-09 21:57:49 +00:00
{% endif %}
2020-09-29 21:11:55 +00:00
</div>
2021-04-09 21:57:49 +00:00
{% endspaceless %}