fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Other versions on book detail page.
[wolnelektury.git]
/
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
bf8a726
..
454bce1
100644
(file)
--- a/
apps/catalogue/templates/catalogue/book_detail.html
+++ b/
apps/catalogue/templates/catalogue/book_detail.html
@@
-1,7
+1,6
@@
{% extends "base.html" %}
{% extends "base.html" %}
-{% load cache i18n %}
-{% load thumbnail %}
-{% load common_tags catalogue_tags pagination_tags %}
+{% load i18n %}
+{% load common_tags catalogue_tags %}
{% block titleextra %}{{ book.pretty_title }}{% endblock %}
{% block ogimage %}{% if book.cover %}{{ book.cover.url|build_absolute_uri:request }}{% endif %}{% endblock %}
{% block titleextra %}{{ book.pretty_title }}{% endblock %}
{% block ogimage %}{% if book.cover %}{{ book.cover.url|build_absolute_uri:request }}{% endif %}{% endblock %}
@@
-16,10
+15,20
@@
{% work_list book_children %}
{% work_list book_children %}
+{% 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">
+<section class="see-also"
style="display: inline-block;"
>
<h1>{% trans "See also" %}:</h1>
<h1>{% trans "See also" %}:</h1>
-{% related_books book %}
+{% related_books book
taken=book.other_versions|length
%}
</section>
</section>
+{% endspaceless %}
{% endblock %}
{% endblock %}