3 {% load catalogue_tags %}
 
   4 {% load book_shelf_tags from social_tags %}
 
   5 <div class="{% block box-class %}book-box{% if audiobooks %} audiobook-box{% endif %}{% endblock %}">
 
   6 <div class="book-box-inner">
 
   8 {% block book-box-pre %}
 
   9     {% include "catalogue/snippets/like_button.html" %}
 
  12 <div class="book-left-column">
 
  14     <div class="book-box-body">
 
  15         {% block book-box-body-pre %}
 
  18         <div class="book-box-head">
 
  20                 {% for tag in tags.author %}
 
  21                     <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>{% if not forloop.last %},
 
  22                 {% endif %}{% endfor %}{% for parent in parents %},
 
  23                     <a href="{{ parent.get_absolute_url }}">{{ parent.title }}</a>{% endfor %}
 
  26                 {% if main_link %}<a href="{{ main_link }}">{% endif %}{{ book.title }}{% if main_link %}</a>{% endif %}
 
  30         <div class="cover-area">
 
  31             {% if book.cover_thumb %}
 
  32                 {% if main_link %}<a href="{{ main_link }}">{% endif %}
 
  33                     <img src="{{ book.cover_thumb.url }}" alt="Cover" class="cover" />
 
  34                 {% if main_link %}</a>{% endif %}
 
  36             {% block cover-area-extra %}{% endblock %}
 
  42             <span class="category">
 
  43             <span class="mono"> {% trans "Epoch" %}:</span> <span class="book-box-tag">
 
  44                 {% for tag in tags.epoch %}
 
  45                     <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>
 
  46                     {% if not forloop.last %}<span>, </span>{% endif %}
 
  50             <span class="category">
 
  51             <span class="mono"> {% trans "Kind" %}:</span> <span class="book-box-tag">
 
  52                 {% for tag in tags.kind %}
 
  53                     <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>
 
  54                     {% if not forloop.last %}<span>, </span>{% endif %}
 
  58             <span class="category">
 
  59             <span class="mono"> {% trans "Genre" %}:</span> <span class="book-box-tag">
 
  60                 {% for tag in tags.genre %}
 
  61                     <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>
 
  62                     {% if not forloop.last %}<span>, </span>{% endif %}
 
  67             <span class="category">
 
  68             <span class="mono"> {% trans "Language" %}:</span> <span class="book-box-tag">
 
  69                 <a>{{ book.language_name }}</a>
 
  74             <br><span class="category">
 
  75                 <a{% if stage_note_url %} href="{{ stage_note_url }}"{% endif %}>{{ stage_note }}</a>
 
  82     {% book_shelf_tags book.pk %}
 
  84     <ul class="book-box-tools">
 
  85         <li class="book-box-read">
 
  86         {% if book.html_file %}
 
  87             <a href="{% url 'book_text' book.slug %}" class="downarrow">{% trans "Read online" %}</a>
 
  90         <li class="book-box-download">
 
  91             <a class="downarrow">{% trans "Download" %}: </a>
 
  92             <div class="book-box-formats">
 
  93              {% if book.pdf_file %}
 
  94              <span><a href="{{ book.pdf_file.url}}">PDF</a></span>
 
  96              {% custom_pdf_link_li book %}
 
  97              {% if book.epub_file %}
 
  98              <span><a href="{{ book.epub_file.url}}">EPUB</a></span>
 
 100              {% if book.mobi_file %}
 
 101              <span><a href="{{ book.mobi_file.url}}">MOBI</a></span>
 
 103              {% if  book.fb2_file %}
 
 104              <span><a href="{{ book.fb2_file.url}}">FB2</a></span>
 
 106              {% if  book.txt_file %}
 
 107              <span><a href="{{ book.txt_file.url}}">TXT</a></span>
 
 109              {% download_audio book %}
 
 113     {% block book-box-extra-info %}{% endblock %}
 
 114     {% block box-append %}
 
 118 {% block right-column %}
 
 120         <div class="audiobook-right-column">
 
 121             {% include 'catalogue/snippets/jplayer.html' %}
 
 126 <div class="clearboth"></div>