X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/e22b691a1c2ac0e1aba750771cd17f032f47c172..db255ed9d242c56b010061fbdef8de9b696869d4:/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 be17ec14..f89e1e76 100644 --- a/src/documents/templates/documents/book_detail.html +++ b/src/documents/templates/documents/book_detail.html @@ -72,20 +72,38 @@
-
- -{% 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 +134,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 %} @@ -127,6 +163,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 %}