X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e1688333f557a60400fed09b4b087f4c8dddb432..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 a3d50057f..c2db0b1af 100644 --- a/src/catalogue/templates/catalogue/2022/book_detail.html +++ b/src/catalogue/templates/catalogue/2022/book_detail.html @@ -1,12 +1,13 @@ -{% extends '2022/base_real.html' %} +{% extends '2022/base.html' %} +{% load chunks %} {% load static %} {% load choose_cites from social_tags %} {% load catalogue_tags %} {% load likes_book from social_tags %} -{% block content %} +{% block global-content %}
-
-
+
+
{% with first_text=book.get_first_text %}
-
- {% likes_book book as likes %} + + + + {% likes_book book as likes %} +
{% if likes %}
{% csrf_token %} @@ -118,159 +126,135 @@
-
-
-
- {% if book.has_mp3_file %} - - {% endif %} -
-
- -
-
- {% if first_text %} - czytaj online - {% endif %} -
-
- {% 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.pdf_file %} -
-
-

.pdf

-

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

-
-
- .pdf -
-
+ {% if accessible %} +
+
+
+ {% if accessible and first_text %} + {% endif %} - {% if book.epub_file %} - + {{ book.pretty_title }} + {% if accessible and first_text %} + {% endif %} - {% if book.mobi_file %} -
-
-

.mobi

-

Natywny format dla czytnika Amazon Kindle.

-
-
- .mobi -
+
+
+
+ {% if likes %} + + {% csrf_token %} + + + {% else %} +
+ {% csrf_token %} + +
+ {% endif %} +
+
+
+ {% if book.has_mp3_file %} + + {% endif %}
- {% endif %} - {% if book.synchro_file %} -
-
-

synchrobook (epub3)

-

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

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

inne formaty

- -
+
+ {% if first_text %} + czytaj online + {% endif %}
- {% endif %} +
-
-
- {% if book.has_mp3_file %} -
+ + + + {% 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 audiobooka

+

Pobieranie e-booka

Wybierz wersję dla siebie:

-
-
-

.mp3

-

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

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

.pdf

+

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

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

OggVorbis

-

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

+

.epub

+

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

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

DAISY

-

Format dla osób z dysfunkcjami czytania.

+

.mobi

+

Natywny format dla czytnika Amazon Kindle.

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

EPUB + audiobook

-

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

+

synchrobook (epub3)

+

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

- {% for epub in book.media_audio_epub %} - EPUB+audio - {% endfor %} + synchrobook +
+
+ {% endif %} + {% if book.txt_file or book.fb2_file %} +
+
+

inne formaty

+
{% endif %} @@ -280,10 +264,80 @@
- {% 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 %} +
+ {% else %} +
+ {% chunk 'book-preview-warn' %} +
+ +
+ {% include 'club/2022/donation_step1_form.html' with form=donation_form %} +
+ {% endif %}
+ {% content_warning book %} {{ book.abstract|safe }} {% if book.toc %} @@ -295,35 +349,39 @@
+ {% 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 %}
- {% include 'catalogue/2022/author_box.html' %} - - {% choose_cites 3 book=book as cites %} - {% if cites %} -
-
-
- {% for fragment in cites %} - {% include "catalogue/2022/fragment_box.html" %} - {% 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 %}
@@ -349,6 +407,7 @@ {% if book.wiki_link %}
  • strona utworu w Wikipedii
  • {% endif %} + {% if accessible %}
  • źródłowy plik XML
  • @@ -358,6 +417,7 @@
  • utwór na Platformie Redakcyjnej
  • + {% endif %}