forked from mirrors/bookwyrm
16 lines
534 B
HTML
16 lines
534 B
HTML
{% load fr_display %}
|
|
{% if book.cover %}
|
|
<div class="cover-container">
|
|
<img class="book-cover {{ size }}" src="/images/{{ book.cover }}" alt="{% include 'snippets/cover_alt.html' with book=book %}">
|
|
</div>
|
|
{% else %}
|
|
<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>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|