X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/c30b0cf1f501570e220f8dd2578f41eaf1585050..793a5b33660d5455279f9229b4808a2bfaed399d:/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 77377542..226c4d4e 100644 --- a/src/documents/templates/documents/book_detail.html +++ b/src/documents/templates/documents/book_detail.html @@ -95,7 +95,8 @@

@@ -134,9 +135,27 @@ {{ 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 %} @@ -145,11 +164,14 @@ {% endif %} -
+ + + + {% if doc %}
@@ -166,10 +188,12 @@ {% 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 %}