Add SRI to external JS.
[wolnelektury.git] / src / catalogue / templates / catalogue / book_wide.html
index 26b085a..ffa4bce 100644 (file)
@@ -7,7 +7,7 @@
 {% block box-class %}book-wide-box{% endblock %}
 
 
-{% block cover-link %}{% url 'book_text' book.get_first_text.slug %}{% endblock %}
+{% block cover-link %}{% if book.get_first_text %}{% url 'book_text' book.get_first_text.slug %}{% endif %}{% endblock %}
 
 
 {% block cover-area-extra %}