{% block bodyid %}book-detail{% endblock %}
{% block body %}
- {% ssi_include 'catalogue_book_wide' pk=book.pk %}
+ {% cache 86400 book_wide book.pk book|status:user %}
+ {% include 'catalogue/book_wide.html' %}
+ {% endcache %}
{% work_list book_children %}
{% block cover-area-extra %}
- {% if extra_info.license %}
- {% license_icon extra_info.license %}
+ {% if book.extra_info.license %}
+ {% license_icon book.extra_info.license %}
{% endif %}
{% endblock %}
))(ssi_expect(pk, int)))
def book_wide(request, pk):
book = get_object_or_404(Book, pk=pk)
- extra_info = book.extra_info
return render(request, 'catalogue/book_wide.html', {
'book': book,
- 'parents': book.parents(),
- 'tags': split_tags(book.tags.exclude(category__in=('set', 'theme'))),
- 'show_lang': book.language_code() != settings.LANGUAGE_CODE,
-
- 'main_link': reverse('book_text', args=[book.slug]) if book.html_file else None,
- 'extra_info': extra_info,
- 'hide_about': extra_info.get('about', '').startswith('http://wiki.wolnepodreczniki.pl'),
})