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 tags.author %}
31 <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>{% if not forloop.last %},
32 {% endif %}{% endfor %}{% for parent in parents %},
33 <a href="{{ parent.get_absolute_url }}">{{ parent.title }}</a>{% endfor %}
36 {% if main_link %}<a href="{{ main_link }}">{% endif %}
38 {% if main_link %}</a>{% endif %}
42 <div class="cover-area">
43 {% if book.cover_thumb %}
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 tags.epoch %}
57 <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</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 tags.kind %}
65 <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</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 tags.genre %}
73 <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</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>
86 <br><span class="category">
87 <a{% if stage_note_url %} href="{{ stage_note_url }}"{% endif %}>{{ stage_note }}</a>
96 <ul class="book-box-tools">
97 <li class="book-box-read">
98 {% if book.html_file %}
99 <a href="{% url 'book_text' book.slug %}" class="downarrow">{% trans "Read online" %}</a>
102 <li class="book-box-download hoverget">
103 <a class="downarrow hoverclick">{% trans "Download" %}</a>
104 <div class="book-box-formats">
105 {% if book.pdf_file %}
106 <span><a href="{{ book.pdf_file.url}}">PDF</a> {% trans "to print" %}</span>
108 {% if book.epub_file %}
109 <span><a href="{{ book.epub_file.url}}">EPUB</a> {% trans "for an e-book reader" %}</span>
111 {% if book.mobi_file %}
112 <span><a href="{{ book.mobi_file.url}}">MOBI</a> {% trans "for Kindle" %}</span>
114 {% if book.fb2_file %}
115 <span><a href="{{ book.fb2_file.url}}">FB2</a> {% trans "FictionBook" %}</span>
117 {% if book.txt_file %}
118 <span><a href="{{ book.txt_file.url}}">TXT</a> {% trans "for advanced usage" %}</span>
122 <li class="book-box-audiobook">
124 <a href="{% url 'book_player' book.slug %}" class="open-player downarrow">{% trans "Listen" %}</a>
128 {% block book-box-extra-info %}{% endblock %}
129 {% block box-append %}
132 {% block right-column %}
134 <div class="clearboth"></div>