X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/cb3eefff46f3ae0b331f7babbd111a3735e22652..634abe44a671e272552f0016155211ae91be09de:/src/documents/templates/documents/book_detail.html diff --git a/src/documents/templates/documents/book_detail.html b/src/documents/templates/documents/book_detail.html index 55da2253..caa3de52 100644 --- a/src/documents/templates/documents/book_detail.html +++ b/src/documents/templates/documents/book_detail.html @@ -72,20 +72,39 @@
-
- -{% if book.dc_cover_image %} - {{ book.dc_cover_image }} -{% endif %} -

-
- -Okładka w rozmiarze - x - -
-
-
+
+ + {% if book.dc_cover_image %} + {{ book.dc_cover_image }} + {% endif %} +

+ +
+ {% csrf_token %} +
+ + +
+
+ + +

+
+ + Pobierz okładkę: +
+
+ + + +
+
+
+

{% trans "Last published" %}: {% if book.last_published %} {{ book.last_published }} @@ -116,9 +135,46 @@ Okładka w rozmiarze {{ publish_options_form.as_p }} + {% trans "Publish" %} - + + + {% if perms.depot.add_legimibookpublish %} +


+ {% with thema_main=doc.book_info.thema_main thema=doc.book_info.thema %} + {% if thema_main or thema %} +
+ {% csrf_token %} + + {% with llp=book.last_legimi_publish %} + {% if llp %} + {{ llp.created_at }} → + {{ llp.started_at }} → + {{ llp.finished_at }} + ({{ llp.get_status_display }}) + + {% endif %} + {% endwith %} +
+ {% else %} +
Nie można opublikować na Legimi, ponieważ nie ustalono kategorii Thema.
+ {% endif %} + {% endwith %} + {% endif %} + {% else %} {% trans "Log in to publish." %} {% endif %} @@ -127,11 +183,14 @@ Okładka w rozmiarze
  • {{ publishable_error }}
{% endif %} -
+ + +
+ {% if doc %}
@@ -148,10 +207,12 @@ Okładka w rozmiarze {% trans "characters (with footnotes)" %} {% trans "words" %} {% trans "words (with footnotes)" %} + {% trans "wiersze (+ inne znaki)" %} + {% trans "wiersze (+ inne znaki, z przypisami)" %} - {% with stats=book.wldocument.get_statistics %} + {% with stats=doc.get_statistics %} {% include 'documents/book_stats.html' with book=book stats=stats depth=0 %} {% endwith %}