2 {% load catalogue_tags social_tags %}
 
   4 <div class="{% block box-class %}book-box{% endblock %}">
 
   5 <div class="book-box-inner" style="position: relative;">
 
   8     <a href="{{ main_link }}">
 
  11                 {% thumbnail book.cover "139x193" as thumb %}
 
  19     {% block right-column %}
 
  21     <div class="book-box-body">
 
  24 <div class="star {% if not request.user|likes:book %}un{% endif %}like">
 
  25     <div class="if-like" >
 
  26         <a id="social-book-sets-{{ book.slug }}" data-callback='social-book-sets' class='ajaxable' href='{% url social_book_sets book.slug %}'>
 
  30     <div class="if-unlike">
 
  31         <form id="social-like-book-{{ book.slug }}" data-callback='social-like-book' method='post' class='ajax-form' action='{% url social_like_book book.slug %}'>
 
  32             <button type='submit'>☆</button>
 
  38         <div class="book-box-head">
 
  39             <div class="mono author">
 
  40                 {% for name, slug in related.tags.author %}
 
  41                     <a href="{% tag_url 'author' slug %}">{{ name }}</a>{% if not forloop.last %},
 
  42                 {% endif %}{% endfor %}{% for title, slug in related.parents %},
 
  43                     <a href="{% url book_detail slug %}">{{ title }}</a>
 
  46             <div class="title"><a href="{{ main_link }}">{{ book.title }}</a></div>
 
  51             <span class="mono">{% trans "Epoch" %}:</span> <span class="book-box-tag">
 
  52                 {% for name, slug in related.tags.epoch %}
 
  53                     <a href="{% tag_url 'epoch' slug %}">{{ name }} </a>
 
  57             <span class="mono">{% trans "Kind" %}:</span> <span class="book-box-tag">
 
  58                 {% for name, slug in related.tags.kind %}
 
  59                     <a href="{% tag_url 'kind' slug %}">{{ name }} </a>
 
  63             <span class="mono">{% trans "Genre" %}:</span> <span class="book-box-tag">
 
  64                 {% for name, slug in related.tags.genre %}
 
  65                     <a href="{% tag_url 'genre' slug %}">{{ name }} </a>
 
  75     {% block book-box-extra-info %}{% endblock %}
 
  77     <ul class="book-box-tools">
 
  78         <li class="book-box-read">
 
  79         {% if book.html_file %}
 
  80             <a href="{% url book_text book.slug %}" class="mono downarrow">{% trans "Read online" %}</a>
 
  83         <li class="book-box-download">
 
  84             <a class="mono downarrow">{% trans "Download" %}</a>
 
  85             <div class="book-box-formats mono">
 
  86               {% if book.pdf_file %}
 
  87               <span><a href="{{ book.pdf_file.url}}">PDF</a> do wydruku</span>
 
  89               {% if  book.epub_file %}
 
  90               <span><a href="{{ book.epub_file.url}}">EPUB</a> na czytnik</span>
 
  92               {% if  book.mobi_file %}
 
  93               <span><a href="{{ book.mobi_file.url}}">MOBI</a> na Kindle</span>
 
  95               {% if  book.txt_file %}
 
  96               <span><a href="{{ book.txt_file.url}}">TXT</a> do zadań specjalnych</span>
 
 100         <li class="book-box-audiobook">
 
 101         {% if related.media.mp3 or related.media.ogg %}
 
 102             <a href="{% url book_player book.slug %}" class="open-player mono downarrow">{% trans "Listen" %}</a>
 
 106     {% block box-append %}
 
 108     <div class="clearboth"></div>