Other versions on book detail page.
[wolnelektury.git] / apps / catalogue / templates / catalogue / book_detail.html
index 0da8198..454bce1 100644 (file)
 
 {% work_list book_children %}
 
-
-<h2 class="main-last"><span class="mono">{% trans "See also" %}:</span></h2>
-{% related_books book %}
+{% spaceless %}
+{% if book.other_versions %}
+<section class="see-also" style="display: inline-block;">
+<h1>{% trans "Other versions" %}:</h1>
+{% for rel in book.other_versions %}
+    {% book_mini rel %}
+{% endfor %}
+</section>
+{% endif %}
+
+<section class="see-also" style="display: inline-block;">
+<h1>{% trans "See also" %}:</h1>
+{% related_books book taken=book.other_versions|length %}
+</section>
+{% endspaceless %}
 
 {% endblock %}