1 {% load i18n catalogue_tags %}
3 {% with audiobooks=book.get_audiobooks %}
4 <div class="c-media__player" id="jp_container_{{ book.pk }}">
5 <div class="jp-jplayer" data-player="jp_container_{{ book.pk }}"
6 data-supplied="oga,mp3"></div>
8 <div class="c-player__head">
12 <div class="c-player">
13 <div class="c-player__btns">
14 <button class="play-prev"><i class="icon icon-prev"></i></button>
15 <button class="c-player__btn--md jp-play"><i class="icon icon-play"></i></button>
16 <button class="play-next"><i class="icon icon-next"></i></button>
17 <div class="c-select speed">
23 <li class="is-active">1×</li>
31 <div class="c-player__timeline">
32 <div class="c-player__info"></div>
33 <div class="c-player__chapters">
34 <span>Rozdziały</span>
35 <ul class="jp-playlist">
36 {% for i in audiobooks.0 %}
38 data-mp3='{{ i.mp3.file.url }}'
39 data-ogg='{{ i.ogg.file.url }}'
40 data-media-id="{{ i.mp3.id }}"
42 {% with extra_info=i.mp3.get_extra_info_json %}
46 <span class="attribution">
47 {% trans "Artist:" %} <span class='artist'>{{ extra_info.artist_name }}</span>,
48 {% trans "director:" %} <span class='director'>{{ extra_info.director_name }}</span>
50 <span class="license">
51 {% if extra_info.license %}{% license_icon extra_info.license %}{% endif %}
53 <span class="project-icon">
54 {% if i.mp3.project_icon %}<img class="project-icon" src="{{ i.mp3.project_icon }}">{% endif %}
56 <span class="project-description">
57 {% if i.mp3.project_description %}{{ i.mp3.project_description }}{% else %}
58 {% with fb=extra_info.funded_by %}
59 {% if fb %}Dofinansowano ze środków: {{ fb }}.{% endif %}
69 <span class="jp-seek-bar">
70 <span class="jp-play-bar"></span>
74 <time class="c-player__length">
75 <span class="jp-current-time"></span>
77 <span class="jp-duration"></span>
78 {% if audiobooks.0|length > 1 %}
85 <div class="c-player__volume">
86 <i class="icon icon-volume jp-mute"></i>
87 <span class="jp-volume-bar">
88 <span class="jp-volume-bar-value">
95 <div class="c-media__caption">
96 <div class="license"></div>
97 <div class="project-logo"></div>
98 <div class="content"></div>
101 <ul class="jp-playlist" style="display: none;">
102 {% for i in audiobooks.0 %}
104 data-mp3='{{ i.mp3.file.url }}'
105 data-ogg='{{ i.ogg.file.url }}'
106 data-media-id="{{ i.mp3.id }}"
108 {% with extra_info=i.mp3.get_extra_info_json %}
110 {{ i.mp3.part_name }}
112 <span class="attribution">
113 {% trans "Artist:" %} <span class='artist'>{{ extra_info.artist_name }}</span>,
114 {% trans "director:" %} <span class='director'>{{ extra_info.director_name }}</span>
116 <span class="license">
117 {% if extra_info.license %}{% license_icon extra_info.license %}{% endif %}
119 <span class="project-icon">
120 {% if i.mp3.project_icon %}<img class="project-icon" src="{{ i.mp3.project_icon }}">{% endif %}
122 <span class="project-description">
123 {% if i.mp3.project_description %}{{ i.mp3.project_description }}{% else %}
124 {% with fb=extra_info.funded_by %}
125 {% if fb %}Dofinansowano ze środków: {{ fb }}.{% endif %}