Other versions on book detail page.
[wolnelektury.git] / apps / catalogue / templates / catalogue / book_detail.html
1 {% extends "base.html" %}
2 {% load i18n %}
3 {% load common_tags catalogue_tags %}
4
5 {% block titleextra %}{{ book.pretty_title }}{% endblock %}
6 {% block ogimage %}{% if book.cover %}{{ book.cover.url|build_absolute_uri:request }}{% endif %}{% endblock %}
7
8 {% block metadescription %}{% book_title book %}. {{ block.super }}{% endblock %}
9
10 {% block bodyid %}book-detail{% endblock %}
11
12 {% block body %}
13
14 {% book_wide book %}
15
16 {% work_list book_children %}
17
18 {% spaceless %}
19 {% if book.other_versions %}
20 <section class="see-also" style="display: inline-block;">
21 <h1>{% trans "Other versions" %}:</h1>
22 {% for rel in book.other_versions %}
23     {% book_mini rel %}
24 {% endfor %}
25 </section>
26 {% endif %}
27
28 <section class="see-also" style="display: inline-block;">
29 <h1>{% trans "See also" %}:</h1>
30 {% related_books book taken=book.other_versions|length %}
31 </section>
32 {% endspaceless %}
33
34 {% endblock %}