Fixes #3211, fixes #3211: related books and pictures bars.
[wolnelektury.git] / apps / picture / templates / picture / picture_detail.html
index ef4042c..514f8c3 100644 (file)
@@ -2,6 +2,10 @@
 {% load i18n %}
 {% load picture_tags catalogue_tags pagination_tags %}
 {% load thumbnail %}
+{% load build_absolute_uri from fnp_common %}
+
+
+{% block ogimage %}{% thumbnail picture.image_file "535" upscale="false" as thumb %}{{ thumb.url|build_absolute_uri:request }}{% endthumbnail %}{% endblock %}
 
 
 {% block titleextra %}{{ picture.title }}{% endblock %}
 
 {% block body %}
   {% picture_wide picture %}
+
+{% spaceless %}
+
+<section class="see-also" style="display: inline-block;">
+<h1>{% trans "See also" %}:</h1>
+{% related_books picture %}
+</section>
+{% endspaceless %}
+
 {% endblock %}