2 {% load catalogue_tags social_tags %}
3 <div class="{% block box-class %}book-box{% endblock %}">
4 <div class="book-box-inner">
5 <div class="book-left-column">
10 <div class="book-box-body">
13 <div class="star {% if not request.user|likes:book %}un{% endif %}like">
14 <div class="if-like" >
15 <a id="social-book-sets-{{ book.slug }}" data-callback='social-book-sets' class='ajaxable' href='{% url "social_book_sets" book.slug %}'>
19 <div class="if-unlike">
20 <form id="social-like-book-{{ book.slug }}" data-callback='social-like-book' method='post' class='ajax-form' action='{% url "social_like_book" book.slug %}'>
22 <button type='submit'>☆</button>
28 <div class="book-box-head">
30 {% for tag in related.tags.author %}
31 <a href="{% tag_url 'author' tag.slug %}">{% related_tag_name tag %}</a>{% if not forloop.last %},
32 {% endif %}{% endfor %}{% for title, slug in related.parents %},
33 <a href="{% url 'book_detail' slug %}">{{ title }}</a>{% endfor %}
36 {% if main_link %}<a href="{{ main_link }}">{% endif %}
38 {% if main_link %}</a>{% endif %}
42 <div class="cover-area">
44 {% if main_link %}<a href="{{ main_link }}">{% endif %}
45 <img src="{{ book.cover_thumb.url }}"
46 alt="Cover" class="cover" />
47 {% if main_link %}</a>{% endif %}
49 {% block cover-area-extra %}{% endblock %}
54 <span class="category">
55 <span class="mono"> {% trans "Epoch" %}:</span> <span class="book-box-tag">
56 {% for tag in related.tags.epoch %}
57 <a href="{% tag_url 'epoch' tag.slug %}">{% related_tag_name tag %}</a>
58 {% if not forloop.last %}<span>, </span>{% endif %}
62 <span class="category">
63 <span class="mono"> {% trans "Kind" %}:</span> <span class="book-box-tag">
64 {% for tag in related.tags.kind %}
65 <a href="{% tag_url 'kind' tag.slug %}">{% related_tag_name tag %}</a>
66 {% if not forloop.last %}<span>, </span>{% endif %}
70 <span class="category">
71 <span class="mono"> {% trans "Genre" %}:</span> <span class="book-box-tag">
72 {% for tag in related.tags.genre %}
73 <a href="{% tag_url 'genre' tag.slug %}">{% related_tag_name tag %}</a>
74 {% if not forloop.last %}<span>, </span>{% endif %}
79 <span class="category">
80 <span class="mono"> {% trans "Language" %}:</span> <span class="book-box-tag">
81 <a>{{ book.language_name }}</a>
90 <ul class="book-box-tools">
91 <li class="book-box-read">
92 {% if book.html_file %}
93 <a href="{% url 'book_text' book.slug %}" class="downarrow">{% trans "Read online" %}</a>
96 <li class="book-box-download hoverget">
97 <a class="downarrow hoverclick">{% trans "Download" %}</a>
98 <div class="book-box-formats">
99 {% if book.pdf_file %}
100 <span><a href="{{ book.pdf_file.url}}">PDF</a> {% trans "to print" %}</span>
102 {% if book.epub_file %}
103 <span><a href="{{ book.epub_file.url}}">EPUB</a> {% trans "for an e-book reader" %}</span>
105 {% if book.mobi_file %}
106 <span><a href="{{ book.mobi_file.url}}">MOBI</a> {% trans "for Kindle" %}</span>
108 {% if book.fb2_file %}
109 <span><a href="{{ book.fb2_file.url}}">FB2</a> {% trans "FictionBook" %}</span>
111 {% if book.txt_file %}
112 <span><a href="{{ book.txt_file.url}}">TXT</a> {% trans "for advanced usage" %}</span>
116 <li class="book-box-audiobook">
117 {% if related.media.mp3 or related.media.ogg %}
118 <a href="{% url 'book_player' book.slug %}" class="open-player downarrow">{% trans "Listen" %}</a>
122 {% block book-box-extra-info %}{% endblock %}
123 {% block box-append %}
126 {% block right-column %}
128 <div class="clearboth"></div>