X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/702fb2526face0e696facae2fe725495bfad1274..17ed87c493556adae66975e6cee1454b74e0c904:/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 268fb57c..ee053d57 100644 --- a/src/documents/templates/documents/book_detail.html +++ b/src/documents/templates/documents/book_detail.html @@ -94,9 +94,9 @@ Pobierz okładkę:

@@ -141,19 +141,31 @@ {% 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 %} -
+ {% with thema=doc.book_info.thema %} + {% if 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 ustaiono kategorii Thema.
+ {% endif %} + {% endwith %} {% endif %} {% else %} @@ -188,6 +200,8 @@ {% trans "characters (with footnotes)" %} {% trans "words" %} {% trans "words (with footnotes)" %} + {% trans "wiersze (+ inne znaki)" %} + {% trans "wiersze (+ inne znaki, z przypisami)" %}