Update bookwyrm/templates/snippets/book_cover.html

Co-authored-by: Joachim <joachim.robert@protonmail.com>
This commit is contained in:
Mouse Reeve 2021-08-02 14:46:56 -06:00 committed by GitHub
parent 7754b490fa
commit 2370f60436
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -110,12 +110,7 @@
<img
class="book-cover"
itemprop="thumbnailUrl"
{% if book.cover %}
src="{% if img_path is None %}{% get_media_prefix %}{% else %}{{ img_path }}{% endif %}{{ book.cover }}"
{% else %}
src="{% static "images/no_cover.jpg" %}"
alt="{% trans "No cover" %}"
{% endif %}
>
{% endif %}