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 {% if main_link %}<a href="{{ main_link }}">{% endif %}
11 {% thumbnail book.cover "139x193" as thumb %}
18 {% if main_link %}</a>{% endif %}
19 <div class="book-box-body">
22 <div class="star {% if not request.user|likes:book %}un{% endif %}like">
23 <div class="if-like" >
24 <a id="social-book-sets-{{ book.slug }}" data-callback='social-book-sets' class='ajaxable' href='{% url social_book_sets book.slug %}'>
28 <div class="if-unlike">
29 <form id="social-like-book-{{ book.slug }}" data-callback='social-like-book' method='post' class='ajax-form' action='{% url social_like_book book.slug %}'>
30 <button type='submit'>☆</button>
36 <div class="book-box-head">
37 <div class="mono author">
38 {% for name, slug in related.tags.author %}
39 <a href="{% tag_url 'author' slug %}">{{ name }}</a>{% if not forloop.last %},
40 {% endif %}{% endfor %}{% for title, slug in related.parents %},
41 <a href="{% url book_detail slug %}">{{ title }}</a>{% endfor %}
44 {% if main_link %}<a href="{{ main_link }}">{% endif %}
46 {% if main_link %}</a>{% endif %}
53 <span class="mono"> {% trans "Epoch" %}:</span> <span class="book-box-tag">
54 {% for name, slug in related.tags.epoch %}
55 <a href="{% tag_url 'epoch' slug %}">{{ name }}</a>
56 {% if not forloop.last %}<span>, </span>{% endif %}
60 <span class="mono"> {% trans "Kind" %}:</span> <span class="book-box-tag">
61 {% for name, slug in related.tags.kind %}
62 <a href="{% tag_url 'kind' slug %}">{{ name }}</a>
63 {% if not forloop.last %}<span>, </span>{% endif %}
67 <span class="mono"> {% trans "Genre" %}:</span> <span class="book-box-tag">
68 {% for name, slug in related.tags.genre %}
69 <a href="{% tag_url 'genre' slug %}">{{ name }}</a>
70 {% if not forloop.last %}<span>, </span>{% endif %}
79 <ul class="book-box-tools">
80 <li class="book-box-read">
81 {% if book.html_file %}
82 <a href="{% url book_text book.slug %}" class="mono downarrow">{% trans "Read online" %}</a>
85 <li class="book-box-download hoverget">
86 <a class="mono downarrow hoverclick">{% trans "Download" %}</a>
87 <div class="book-box-formats mono">
88 {% if book.pdf_file %}
89 <span><a href="{{ book.pdf_file.url}}">PDF</a> {% trans "to print" %}</span>
91 {% if book.epub_file %}
92 <span><a href="{{ book.epub_file.url}}">EPUB</a> {% trans "for an e-book reader" %}</span>
94 {% if book.mobi_file %}
95 <span><a href="{{ book.mobi_file.url}}">MOBI</a> {% trans "for Kindle" %}</span>
97 {% if book.txt_file %}
98 <span><a href="{{ book.txt_file.url}}">TXT</a> {% trans "for advanced usage" %}</span>
102 <li class="book-box-audiobook">
103 {% if related.media.mp3 or related.media.ogg %}
104 <a href="{% url book_player book.slug %}" class="open-player mono downarrow">{% trans "Listen" %}</a>
108 {% block book-box-extra-info %}{% endblock %}
109 {% block box-append %}
111 {% block right-column %}
113 <div class="clearboth"></div>