X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/acf3c41fb0ffe8e451b1e465b00e9998f2b027ac..702fb2526face0e696facae2fe725495bfad1274:/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 d9b06c7f..268fb57c 100644 --- a/src/documents/templates/documents/book_detail.html +++ b/src/documents/templates/documents/book_detail.html @@ -37,8 +37,12 @@
- W katalogu: - {{ book.catalogue_book }} + {% with cbook=book.catalogue_book %} + {% if cbook %} + W katalogu: + {{ cbook }} + {% endif %} + {% endwith %}
@@ -68,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 }} @@ -112,9 +135,27 @@ Okładka w rozmiarze {{ publish_options_form.as_p }} + {% trans "Publish" %} - + + + {% if perms.depot.add_legimibookpublish %} +


+
+ {% 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 %} +
+ {% endif %} + {% else %} {% trans "Log in to publish." %} {% endif %} @@ -123,6 +164,39 @@ Okładka w rozmiarze
  • {{ publishable_error }}
{% endif %} + + +
+
+
+ + +{% if doc %} +
+
+

{% trans "Statistics" %}

+
+
+ + + + + + + + + + + + {% with stats=doc.get_statistics %} + {% include 'documents/book_stats.html' with book=book stats=stats depth=0 %} + {% endwith %} + +
+ {% trans "book" %} + {% trans "characters" %}{% trans "characters (with footnotes)" %}{% trans "words" %}{% trans "words (with footnotes)" %}
+
+{% endif %} {% endblock content %}