1 {% extends "catalogue/viewer_base.html" %}
 
   3 {% load catalogue_tags %}
 
   6 {% load annoy_banners from annoy %}
 
   9 {% block title %}{{ book.pretty_title }}{% endblock %}
 
  14     <a href="{{ book.get_absolute_url }}" id="menu-book" data-box="book-short">
 
  15       <img src="{% if book.cover_thumb %}{% thumbnail book.cover_thumb '240x332' as thumb %}{{ thumb.url }}{% empty %}{{ book.cover_thumb.url }}{% endthumbnail %}{% endif %}"
 
  16            width="120" height="166"
 
  17            alt="{{ book.pretty_title }}"
 
  18            title="{{ book.pretty_title }}">
 
  22   {% if book.other_versions.exists %}
 
  24       <a href="#" data-box="other">
 
  25         <span class="label">{% trans "Other versions" %}</span>
 
  31     <a href="#" data-box="wltoc">
 
  32       <span class="label">{% trans "Table of contents" %}</span>
 
  37     <a href="#" data-box="themes">
 
  38       <span class="label">{% trans "Themes" %}</span>
 
  42   <li id="menu-nota_red">
 
  43     <a href="#" data-box="nota_red">
 
  44       <span class="label">{% trans "Edit. note" %}</span>
 
  49     <a href="#info" data-box="info">
 
  50       <span class="label">{% trans "Infobox" %}</span>
 
  54   <a href="#" class="settings-switch" id="settings-line-numbers"
 
  55      data-setting="always-hide-line-numbers"><span>{% trans "Numbering" %}</span></a>
 
  56   <a href="#" class="settings-switch" id="settings-themes"
 
  57      data-setting="always-hide-themes"><span>{% trans "Themes" %}</span></a>
 
  58     <a href="#" class="settings-switch" id="settings-annotations"
 
  59        data-setting="no-annotations"><span>{% trans "Footnotes" %}</span></a>
 
  66   <article id="main-text">
 
  67     {% with next=book.get_next_text prev=book.get_prev_text %}
 
  69         <a style="float:right; padding: 1em;" href="{% url 'book_text' next.slug %}">{{ next.title }} →</a>
 
  72         <a style="display:inline-block;padding: 1em;" href="{% url 'book_text' prev.slug %}">← {{ prev.title }}</a>
 
  74       <div style="clear:both;"></div>
 
  81   <article id="other-text">
 
  82     <a class="other-text-close" href="#">{% trans "Close" %}</a>
 
  83     <div id="other-text-waiter">{% trans "Please wait..." %}</div>
 
  84     <div id="other-text-body" style="display: none;"></div>
 
  86 {% endblock big-pane %}
 
  89   <div id="wltoc" class="box">
 
  91       {% for b in book.ancestor.all %}
 
  92         {% if forloop.counter > 1 %}
 
  95         <a href="{{ b.get_absolute_url }}">{{ b.title }}</a>
 
  98         {% for b in book.get_siblings %}
 
 101               <strong>{{ b.title }}</strong>
 
 102               <div id="heretoc"></div>
 
 104               <a href="{% url 'book_text' b.get_first_text.slug %}">{{ b.title }}</a>
 
 109         {% for b in book.ancestor.all %}
 
 111         {% if not forloop.counter.last %}
 
 116       <strong>{{ book.title }}</strong>
 
 117       <div id="heretoc"></div>
 
 121   <div id="info" class="box">
 
 125   {% if book.other_versions.exists %}
 
 126     <div class="box" id="other">
 
 127       <h2>{% trans "Other versions of the book" %}</h2>
 
 128       <a class="other-text-close" href="#">{% trans "Close the other version" %}</a>
 
 131           {% for other_version in book.other_versions %}
 
 133               <a class="display-other"
 
 134                  data-other="{{ other_version.html_url }}"
 
 135                  href="{% url 'book_text' other_version.slug %}">
 
 136                 {{ other_version.mini_box_nolink }}
 
 145   <div class="box" id="book-short">
 
 146     {% include 'catalogue/book_short.html' %}
 
 149   <div id="annoy-stubs">
 
 150     {% annoy_banners 'book-text-intermission' %}
 
 152     {% for insert in inserts %}
 
 153       {% include 'annoy/dynamic_insert.html' %}
 
 156 {% endblock footer %}