2 {% load catalogue_tags social_tags %}
4 <div class="{% block box-class %}book-box{% endblock %}">
5 <div class="book-box-inner">
6 <div class="book-left-column">
11 <div class="book-box-body">
14 <div class="star {% if not request.user|likes:book %}un{% endif %}like">
15 <div class="if-like" >
16 <a id="social-book-sets-{{ book.slug }}" data-callback='social-book-sets' class='ajaxable' href='{% url "social_book_sets" book.slug %}'>
20 <div class="if-unlike">
21 <form id="social-like-book-{{ book.slug }}" data-callback='social-like-book' method='post' class='ajax-form' action='{% url "social_like_book" book.slug %}'>
23 <button type='submit'>☆</button>
29 <div class="book-box-head">
31 {% for tag in related.tags.author %}
32 <a href="{% tag_url 'author' tag.slug %}">{% related_tag_name tag %}</a>{% if not forloop.last %},
33 {% endif %}{% endfor %}{% for title, slug in related.parents %},
34 <a href="{% url 'book_detail' slug %}">{{ title }}</a>{% endfor %}
37 {% if main_link %}<a href="{{ main_link }}">{% endif %}
39 {% if main_link %}</a>{% endif %}
43 <div class="cover-area">
45 {% if main_link %}<a href="{{ main_link }}">{% endif %}
47 {% thumbnail book.cover "139x193" as thumb %}
52 " alt="Cover" class="cover" />
53 {% if main_link %}</a>{% endif %}
55 {% block cover-area-extra %}{% endblock %}
60 <span class="category">
61 <span class="mono"> {% trans "Epoch" %}:</span> <span class="book-box-tag">
62 {% for tag in related.tags.epoch %}
63 <a href="{% tag_url 'epoch' tag.slug %}">{% related_tag_name tag %}</a>
64 {% if not forloop.last %}<span>, </span>{% endif %}
68 <span class="category">
69 <span class="mono"> {% trans "Kind" %}:</span> <span class="book-box-tag">
70 {% for tag in related.tags.kind %}
71 <a href="{% tag_url 'kind' tag.slug %}">{% related_tag_name tag %}</a>
72 {% if not forloop.last %}<span>, </span>{% endif %}
76 <span class="category">
77 <span class="mono"> {% trans "Genre" %}:</span> <span class="book-box-tag">
78 {% for tag in related.tags.genre %}
79 <a href="{% tag_url 'genre' tag.slug %}">{% related_tag_name tag %}</a>
80 {% if not forloop.last %}<span>, </span>{% endif %}
89 <ul class="book-box-tools">
90 <li class="book-box-read">
91 {% if book.html_file %}
92 <a href="{% url 'book_text' book.slug %}" class="downarrow">{% trans "Read online" %}</a>
95 <li class="book-box-download hoverget">
96 <a class="downarrow hoverclick">{% trans "Download" %}</a>
97 <div class="book-box-formats">
98 {% if book.pdf_file %}
99 <span><a href="{{ book.pdf_file.url}}">PDF</a> {% trans "to print" %}</span>
101 {% if book.epub_file %}
102 <span><a href="{{ book.epub_file.url}}">EPUB</a> {% trans "for an e-book reader" %}</span>
104 {% if book.mobi_file %}
105 <span><a href="{{ book.mobi_file.url}}">MOBI</a> {% trans "for Kindle" %}</span>
107 {% if book.fb2_file %}
108 <span><a href="{{ book.fb2_file.url}}">FB2</a> {% trans "FictionBook" %}</span>
110 {% if book.txt_file %}
111 <span><a href="{{ book.txt_file.url}}">TXT</a> {% trans "for advanced usage" %}</span>
115 <li class="book-box-audiobook">
116 {% if related.media.mp3 or related.media.ogg %}
117 <a href="{% url 'book_player' book.slug %}" class="open-player downarrow">{% trans "Listen" %}</a>
121 {% block book-box-extra-info %}{% endblock %}
122 {% block box-append %}
125 {% block right-column %}
127 <div class="clearboth"></div>