3 {% load catalogue_tags ssify %}
4 {% load likes_book book_shelf_tags from social_tags %}
5 <div class="{% block box-class %}book-box{% endblock %}">
6 <div class="book-box-inner">
7 <div class="book-left-column">
12 <div class="book-box-body">
15 {% likes_book book.pk as likes %}
16 <div class="star {{ likes.if }}{{ likes.else }}un{{ likes.endif }}like">
17 <div class="if-like" >
18 <a id="social-book-sets-{{ book.slug }}" data-callback='social-book-sets' class='ajaxable' href='{% url "social_book_sets" book.slug %}'>★</a>
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>
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 %}{{ book.title }}{% if main_link %}</a>{% endif %}
40 <div class="cover-area">
41 {% if book.cover_thumb %}
42 {% if main_link %}<a href="{{ main_link }}">{% endif %}
43 <img src="{{ book.cover_thumb.url }}" alt="Cover" class="cover" />
44 {% if main_link %}</a>{% endif %}
46 {% block cover-area-extra %}{% endblock %}
52 <span class="category">
53 <span class="mono"> {% trans "Epoch" %}:</span> <span class="book-box-tag">
54 {% for tag in tags.epoch %}
55 <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>
56 {% if not forloop.last %}<span>, </span>{% endif %}
60 <span class="category">
61 <span class="mono"> {% trans "Kind" %}:</span> <span class="book-box-tag">
62 {% for tag in tags.kind %}
63 <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>
64 {% if not forloop.last %}<span>, </span>{% endif %}
68 <span class="category">
69 <span class="mono"> {% trans "Genre" %}:</span> <span class="book-box-tag">
70 {% for tag in tags.genre %}
71 <a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>
72 {% if not forloop.last %}<span>, </span>{% endif %}
77 <span class="category">
78 <span class="mono"> {% trans "Language" %}:</span> <span class="book-box-tag">
79 <a>{{ book.language_name }}</a>
84 <br><span class="category">
85 <a{% if stage_note_url %} href="{{ stage_note_url }}"{% endif %}>{{ stage_note }}</a>
92 {% book_shelf_tags book.pk %}
94 <ul class="book-box-tools">
95 <li class="book-box-read">
96 {% if book.html_file %}
97 <a href="{% url 'book_text' book.slug %}" class="downarrow">{% trans "Read online" %}</a>
100 <li class="book-box-download">
101 <a class="downarrow">{% trans "Download" %}: </a>
102 <div class="book-box-formats">
103 {% if book.pdf_file %}
104 <span><a href="{{ book.pdf_file.url}}">PDF</a></span>
106 {% custom_pdf_link_li book %}
107 {% if book.epub_file %}
108 <span><a href="{{ book.epub_file.url}}">EPUB</a></span>
110 {% if book.mobi_file %}
111 <span><a href="{{ book.mobi_file.url}}">MOBI</a></span>
113 {% if book.fb2_file %}
114 <span><a href="{{ book.fb2_file.url}}">FB2</a></span>
116 {% if book.txt_file %}
117 <span><a href="{{ book.txt_file.url}}">TXT</a></span>
119 {% download_audio book %}
125 {% block book-box-extra-info %}{% endblock %}
126 {% block box-append %}
135 {% block right-column %}
140 <div class="jp-type-playlist">
141 <div id="jplayer" class="jp-jplayer" data-player="jp_container_{{ book.pk }}"
142 data-supplied="{% if have_oggs %}oga,{% endif %}mp3"></div>
143 <div id="jp_container_{{ book.pk }}" class="jp-audio">
144 <div class="jp-type-single">
145 <span class="title"></span>
146 <div class="jp-gui jp-interface">
147 <ul class="jp-controls">
148 <li><a href="javascript:;" class="jp-play" tabindex="1">play</a></li>
149 <li><a href="javascript:;" class="jp-pause" tabindex="1">pause</a></li>
150 <li><a href="javascript:;" class="jp-mute" tabindex="1" title="mute">mute</a></li>
151 <li><a href="javascript:;" class="jp-unmute" tabindex="1" title="unmute">unmute</a></li>
153 <div class="jp-progress">
154 <div class="jp-seek-bar">
155 <div class="jp-play-bar"></div>
158 <div class="jp-volume-bar">
159 <div class="jp-volume-bar-value"></div>
161 <div class="jp-time-holder">
162 <div class="jp-current-time"></div>
163 <div class="jp-duration"></div>
166 <div class="jp-playlist">
169 {% for i in audiobooks %}
170 <li data-mp3='{{ i.mp3.file.url }}' data-ogg='{{ i.ogg.file.url }}'>
171 <div class='play'>{{ i.mp3.name }}
172 <div class='extra-info'>
173 {% trans "Artist" %}: <span class='artist'>{{ i.mp3.extra_info.artist_name }}</span>,
174 {% trans "Director" %}: <span class='director'>{{ i.mp3.extra_info.director_name }}</span>
183 <div class="jp-no-solution">
184 <span>Update Required</span>
185 To play the media you will need to either update your browser to a recent version or update your <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash plugin</a>.
190 <a class="play-prev">« {% trans "previous" %}</a>
191 {% trans "Part" %} <span class="number">1</span> / {{ audiobooks|length }}
192 <a class="play-next">{% trans "next" %} »</a>
200 <div class="clearboth"></div>