X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/60123f2c3cb55d31b9ce973a794a0edbe2a282b9..cafca91e28661f24abbcda91c733de7e77d16e86:/src/catalogue/templates/catalogue/2022/book_detail.html diff --git a/src/catalogue/templates/catalogue/2022/book_detail.html b/src/catalogue/templates/catalogue/2022/book_detail.html index 4eb6ec4da..c2db0b1af 100644 --- a/src/catalogue/templates/catalogue/2022/book_detail.html +++ b/src/catalogue/templates/catalogue/2022/book_detail.html @@ -1,61 +1,13 @@ - -{% load pipeline %} +{% extends '2022/base.html' %} + +{% load chunks %} {% load static %} {% load choose_cites from social_tags %} -{% load choose_fragment license_icon from catalogue_tags %} {% load catalogue_tags %} +{% load likes_book from social_tags %} - - - - - - WolneLektury.pl - - - {% stylesheet '2022' %} - - - - - - - - - - - +{% block global-content %}
-
-
- -
- +
- {% endif %} -
-
-
-

Pobieranie e-booka

-

Wybierz wersję dla siebie:

-
-
- {% if book.pdf_file %} -
-
-

.pdf

-

Jeśli planujesz wydruk albo lekturę na urządzeniu mobilnym bez dodatkowych aplikacji.

-
-
- .pdf -
-
- {% endif %} - {% if book.epub_file %} -
-
-

.epub

-

Uniwersalny format e-booków, obsługiwany przez większość czytników sprzętowych i aplikacji na urządzenia mobilne.

-
-
- .epub -
-
- {% endif %} - {% if book.mobi_file %} -
-
-

.mobi

-

Natywny format dla czytnika Amazon Kindle.

-
-
- .mobi -
+ {% if accessible %} +
+
+
+ {% if accessible and first_text %} + + {% endif %} + {{ book.pretty_title }} + {% if accessible and first_text %} + + {% endif %} +
+
+
+ {% if likes %} +
+ {% csrf_token %} + +
+ {% else %} +
+ {% csrf_token %} + +
+ {% endif %}
- {% endif %} - {% if book.synchro_file %} -
-
-

synchrobook (epub3)

-

Książka elektroniczna i audiobook w jednym. Wymaga aplikacji obsługującej format (np. ..., ..., ...).

+
+
+ {% if book.has_mp3_file %} + + {% endif %}
-
- synchrobook +
+
-
- {% endif %} - {% if book.txt_file or book.fb2_file %} -
-
-

inne formaty

- +
+ {% if first_text %} + czytaj online + {% endif %}
- {% endif %} -
- -
-
- {% if book.has_mp3_file %} -
-
-
-

Pobieranie audiobooka

-

Wybierz wersję dla siebie:

-
-
-
-

.mp3

-

Uniwersalny format, obsługiwany przez wszystkie urządzenia.

-
-
- .mp3 -
+
+ + + + {% if book.has_mp3_file %} + {% include 'catalogue/snippets/2022_jplayer.html' %} + {% else %} + {% with ch=book.get_child_audiobook %} + {% if ch %} + {% include 'catalogue/snippets/2022_jplayer_link.html' with book=ch %} + {% endif %} + {% endwith %} + + {% endif %} + + + + +
+
+
+

Pobieranie e-booka

+

Wybierz wersję dla siebie:

- {% if book.has_ogg_file %} -
-
-

OggVorbis

-

Otwarty format plików audio, oferujący nagranie w najwyższej jakości dźwiękowej.

+
+ {% if book.pdf_file %} +
+
+

.pdf

+

Jeśli planujesz wydruk albo lekturę na urządzeniu mobilnym bez dodatkowych aplikacji.

+
+
+ .pdf +
-
- .ogg + {% endif %} + {% if book.epub_file %} +
+
+

.epub

+

Uniwersalny format e-booków, obsługiwany przez większość czytników sprzętowych i aplikacji na urządzenia mobilne.

+
+
+ .epub +
-
- {% endif %} - {% if book.has_daisy_file %} -
-
-

DAISY

-

Format dla osób z dysfunkcjami czytania.

+ {% endif %} + {% if book.mobi_file %} +
+
+

.mobi

+

Natywny format dla czytnika Amazon Kindle.

+
+
+ .mobi +
-
- {% for dsy in book.media_daisy %} - DAISY - {% endfor %} + {% endif %} + {% if book.synchro_file %} +
+
+

synchrobook (epub3)

+

Książka elektroniczna i audiobook w jednym. Wymaga aplikacji obsługującej format (np. ..., ..., ...).

+
+
-
- {% endif %} - {% if book.has_synchro_file %} -
-
-

synchrobook

-

Książka elektroniczna i audiobook w jednym. Wymaga aplikacji obsługującej format.

+ {% endif %} + {% if book.txt_file or book.fb2_file %} +
+
+

inne formaty

+ +
-
- synchrobook + {% endif %} +
+ +
+
+ {% if book.has_mp3_file %} +
+
+
+

Pobieranie audiobooka

+

Wybierz wersję dla siebie:

+
+
+
+
+

.mp3

+

Uniwersalny format, obsługiwany przez wszystkie urządzenia.

+
+
+ .mp3 +
+ {% if book.has_ogg_file %} +
+
+

OggVorbis

+

Otwarty format plików audio, oferujący nagranie w najwyższej jakości dźwiękowej.

+
+
+ .ogg +
+
+ {% endif %} + {% if book.has_daisy_file %} +
+
+

DAISY

+

Format dla osób z dysfunkcjami czytania.

+
+
+ {% for dsy in book.media_daisy %} + DAISY + {% endfor %} +
+
+ {% endif %} + {% if book.has_audio_epub_file %} +
+
+

EPUB + audiobook

+

Książka elektroniczna i audiobook w jednym. Wymaga aplikacji obsługującej format.

+
+
+ {% for epub in book.media_audio_epub %} + EPUB+audio + {% endfor %} +
+
+ {% endif %}
- {% endif %} + +
- -
+ {% endif %} +
+ {% else %} +
+ {% chunk 'book-preview-warn' %} +
+ +
+ {% include 'club/2022/donation_step1_form.html' with form=donation_form %}
{% endif %} -
-
- {{ book.abstract|safe }} +
+ {% content_warning book %} + {{ book.abstract|safe }} - {% if book.toc %} -

Spis treści:

- {{ book.toc|safe }} - {% endif %} -
- -
-
-
-

Ta książka jest dostępna dla tysięcy dzieciaków dzięki darowiznom od osób takich jak Ty!

- Dorzuć się! + {% if book.toc %} +
+

Spis treści:

+ {{ book.toc|safe }} +
+ {% endif %} +
+ + + {% if accessible %} +
+
+

Ta książka jest dostępna dla tysięcy dzieciaków dzięki darowiznom od osób takich jak Ty!

+ Dorzuć się! +
+
+ +
-
- Dorzuć się! -
+ {% endif %}
-
+ {% endwith %}
- {% for author in book.authors %} + {% for tag in book.authors %}
-
-

O autorze

-
- {% if author.photo %} -
- {{ author.name }} -
- {{ author.photo_attribution|safe }} -
-
- {% endif %} -
-

{{ author.name }}

-
- {{ author.description|safe }} -
- -
-
-
- - {% choose_cites book 3 as cites %} - {% if cites %} -
-
-
- {% for fragment in cites %} - - - - {{ fragment.short_text|safe }} - -

{{ fragment.book.pretty_title }}

-
- {% endfor %} + {% include 'catalogue/2022/author_box.html' %} + + {% if forloop.first %} + {% choose_cites 3 book=book as cites %} + {% if cites %} +
+
+
+ {% for fragment in cites %} + {% include "catalogue/2022/fragment_slider_box.html" %} + {% endfor %} +
-
+ {% endif %} {% endif %}
-
+ {% endfor %}
@@ -398,6 +404,10 @@ {% endif %} {% endwith %}
@@ -426,7 +437,7 @@
- {{ rel.pretty_title }} + {{ rel.pretty_title }}

@@ -445,7 +456,7 @@
- {{ rel.pretty_title }} + {{ rel.pretty_title }}

@@ -467,39 +478,5 @@ - - - - - {% javascript '2022' %} - {% javascript '2022_player' %} - - +{% endblock %}