X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/c30b0cf1f501570e220f8dd2578f41eaf1585050..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 77377542..caa3de52 100644 --- a/src/documents/templates/documents/book_detail.html +++ b/src/documents/templates/documents/book_detail.html @@ -94,8 +94,9 @@ Pobierz okładkę:

@@ -134,9 +135,46 @@ {{ 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 %} @@ -145,11 +183,14 @@ {% endif %} -
+ + + + {% if doc %}
@@ -166,10 +207,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 %}