From: Radek Czajka <radekczajka@nowoczesnapolska.org.pl>
Date: Fri, 24 Jan 2014 09:48:28 +0000 (+0100)
Subject: Another cover fix.
X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/9bbc3e87eb5de5206ed040f47a31ac47d96b3300

Another cover fix.
---

diff --git a/apps/catalogue/templates/catalogue/book_mini_box.html b/apps/catalogue/templates/catalogue/book_mini_box.html
index 82038e712..49257b1c3 100755
--- a/apps/catalogue/templates/catalogue/book_mini_box.html
+++ b/apps/catalogue/templates/catalogue/book_mini_box.html
@@ -3,7 +3,7 @@
     {% if with_link %}
     <a href="{{ book.get_absolute_url }}">
     {% endif %}
-        {% if book.cover %}
+        {% if book.cover_thumb %}
             <img src="{{ book.cover_thumb.url }}"
                 alt="{{ author_str }} – {{ book.title }}" class="cover" />
         {% endif %}
diff --git a/apps/catalogue/templates/catalogue/book_short.html b/apps/catalogue/templates/catalogue/book_short.html
index 5757c6a03..3a0d37a86 100644
--- a/apps/catalogue/templates/catalogue/book_short.html
+++ b/apps/catalogue/templates/catalogue/book_short.html
@@ -40,7 +40,7 @@
         </div>
 
 <div class="cover-area">
-    {% if book.cover %}
+    {% if book.cover_thumb %}
         {% if main_link %}<a href="{{ main_link }}">{% endif %}
             <img src="{{ book.cover_thumb.url }}"
                 alt="Cover" class="cover" />