proper sorting of pictures in gallery view
[wolnelektury.git] / apps / catalogue / templates / catalogue / book_detail.html
index 783b688..f266742 100644 (file)
@@ -1,10 +1,10 @@
 {% extends "base.html" %}
-{% load cache i18n %}
+{% load i18n %}
 {% load thumbnail %}
-{% load common_tags catalogue_tags pagination_tags %}
+{% load common_tags catalogue_tags %}
 
 {% block titleextra %}{{ book.pretty_title }}{% endblock %}
-{% block ogimage %}{{ book.cover.url|build_absolute_uri:request }}{% endblock %}
+{% block ogimage %}{% if book.cover %}{{ book.cover.url|build_absolute_uri:request }}{% endif %}{% endblock %}
 
 {% block metadescription %}{% book_title book %}. {{ block.super }}{% endblock %}