X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/3726f9b225fb5c39cbf067f53d4cf6f7d8a9f326..ab86dfc26dcdfc69688d4498b1b683de85a923de:/apps/catalogue/templates/catalogue/book_detail.html diff --git a/apps/catalogue/templates/catalogue/book_detail.html b/apps/catalogue/templates/catalogue/book_detail.html index f266742c1..454bce150 100644 --- a/apps/catalogue/templates/catalogue/book_detail.html +++ b/apps/catalogue/templates/catalogue/book_detail.html @@ -1,6 +1,5 @@ {% extends "base.html" %} {% load i18n %} -{% load thumbnail %} {% load common_tags catalogue_tags %} {% block titleextra %}{{ book.pretty_title }}{% endblock %} @@ -16,8 +15,20 @@ {% work_list book_children %} - -

{% trans "See also" %}:

-{% related_books book %} +{% spaceless %} +{% if book.other_versions %} +
+

{% trans "Other versions" %}:

+{% for rel in book.other_versions %} + {% book_mini rel %} +{% endfor %} +
+{% endif %} + +
+

{% trans "See also" %}:

+{% related_books book taken=book.other_versions|length %} +
+{% endspaceless %} {% endblock %}