mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-26 10:00:33 +00:00
686d6328ae
Fixes #153
11 lines
410 B
HTML
11 lines
410 B
HTML
{% if book.cover %}
|
|
<img class="book-cover {{ size }}" src="/images/{{ book.cover }}" alt="'{{ book.title }}' Cover">
|
|
{% else %}
|
|
<div class="no-cover book-cover {{ size }}">
|
|
<img class="book-cover {{ size }}" src="/static/images/no_cover.jpg" alt="'{{ book.title }}' Cover">
|
|
<div>
|
|
<p class="title">{{ book.title }}</p>
|
|
<p>{{ book.authors.first.name }}</p>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|