{% extends "catalogue/viewer_base.html" %}
{% load i18n %}
-{% load catalogue_tags %}
+{% load catalogue_tags ssify %}
{% load thumbnail %}
{% block menu %}
<li><a href="{{ book.get_absolute_url }}" id="menu-book" data-box="book-short">
- <img src="{% thumbnail book.cover '80x111' as thumb %}{{ thumb.url }}{% empty %}{{ book.cover.url }}{% endthumbnail %}"
+ <img src="{% if book.cover_thumb %}{% thumbnail book.cover_thumb '80x111' as thumb %}{{ thumb.url }}{% empty %}{{ book.cover_thumb.url }}{% endthumbnail %}{% endif %}"
width="80" height="111"
alt="{{ book.pretty_title }}"
title="{{ book.pretty_title }}">
<div id="big-pane" style="">
<article id="main-text">
-{{ book.html_file.read|safe }}
+<!--#include file='{{ book.html_file.url }}'-->
</article>
<article id="other-text">
<li><a class="display-other"
data-other="{{ other_version.html_file.url }}"
href="{% url 'book_text' other_version.slug %}">
- {% book_mini other_version with_link=False %}
+ {% ssi_include 'catalogue_book_mini_nolink' pk=other_version.pk %}
</a>
</li>
{% endfor %}
</div>
<div class="box" id="book-short">
- {% book_short book %}
+ {% ssi_include 'catalogue_book_short' pk=book.pk %}
</div>
{% endblock footer %}