project sell info and initial synchro support
[redakcja.git] / src / cover / templates / cover / image_detail.html
index c357ff0..6a67eec 100644 (file)
           {% for book in object.book_set.all %}
             <li>
               <a href="{{ book.get_absolute_url }}" title="{{ book }}">
-                <img src="{{ book.cover.url }}?{{ object.etag }}" alt="{{ book }}">
+                {% if book.cover %}
+                  <img src="{{ book.cover.url }}?{{ object.etag }}" alt="{{ book }}">
+                {% else %}
+                  {{ book }}
+                {% endif %}
               </a>
             </li>
           {% endfor %}