mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-29 03:20:32 +00:00
12 lines
442 B
HTML
12 lines
442 B
HTML
{% load fr_display %}
|
|
{% if book.cover %}
|
|
<img class="book-cover {{ size }}" src="/images/{{ book.cover }}" alt="{% include 'snippets/cover_alt.html' with book=book %}">
|
|
{% else %}
|
|
<div class="no-cover book-cover {{ size }}">
|
|
<img class="book-cover {{ size }}" src="/static/images/no_cover.jpg" alt="No cover">
|
|
<div>
|
|
<p class="title">{{ book.title }}</p>
|
|
<p>({{ book|edition_info }})</p>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|