X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/e977f7187b10b1bc0a30794cd585c6b840568996..91a20d3c82e0edcd883148b14df90b56a38ba2b2:/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 3dbaf213..a286302f 100644 --- a/src/documents/templates/documents/book_detail.html +++ b/src/documents/templates/documents/book_detail.html @@ -1,6 +1,8 @@ {% extends "documents/base.html" %} {% load book_list i18n %} {% load bootstrap4 %} +{% load depot %} +{% load isbn %} {% block titleextra %}{{ book.title }}{% endblock %} @@ -13,27 +15,40 @@

{{ book.title }}

- +
+
-{% if editable %}
{% csrf_token %}{% endif %} - {% bootstrap_form form %} - {% if editable %} - {% buttons %} - + {% if editable %}{% csrf_token %}{% endif %} + {% bootstrap_form form %} + {% if editable %} + {% buttons %} + {% endbuttons %} - {% endif %} -{% if editable %}
{% endif %} - -{% if editable %} - {% if book.gallery %} -

{% trans "Edit gallery" %}

- {% endif %} - -

{% trans "Append to other book" %}

-{% endif %} -
+ {% endif %} + {% if editable %}{% endif %} + + {% if editable %} + {% if book.gallery %} +

{% trans "Edit gallery" %}

+ {% endif %} + +

{% trans "Append to other book" %}

+ {% endif %} + + +
+
+ {% with cbook=book.catalogue_book %} + {% if cbook %} + W katalogu: + {{ cbook }} + {% endif %} + {% endwith %} +
+
+
@@ -41,79 +56,178 @@
- - {% for chunk in book %} - {% include 'documents/book_list/chunk.html' %} - {% endfor %} -
+ + {% for chunk in book %} + {% include 'documents/book_list/chunk.html' %} + {% endfor %} +
-
+
-
-

{% trans "Publication" %}

+
+

{% trans "Publication" %}

+
+
+
+
+ + {% 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 }} + {% else %} + — + {% endif %} +

+ + {% if publishable %} +

+ {% trans "Full XML" %}
+ {% trans "HTML version" %}
+ {% trans "TXT version" %}
+ {% trans "PDF version" %}
+ {% trans "PDF version for mobiles" %}
+ {% trans "EPUB version" %}
+ {% trans "MOBI version" %}
+

+ + {% isbn_status book %} + + {% if user.is_authenticated %} + +
{% csrf_token %} + {{ publish_options_form.as_p }} + + + +
+ + + {% if perms.depot.add_sitebookpublish %} + {% depot_sites book as sites %} + {% for site in sites %} +
+

{{ site.name }}

+ {% if not site.errors %} +
+ {% csrf_token %} + +
+ {% for info in site.info %} +
+ {{ info }} +
+ {% endfor %} + {% else %} + {% for error in site.errors %} +
+ {{ error }} +
+ {% endfor %} + {% endif %} + {% for warning in site.warnings %} +
+ {{ warning }} +
+ {% endfor %} + {% if site.id %} + id:{{ site.id }} + {% endif %} + {% with last=site.last %} + {% if last %} + {{ last.created_at }} → + {{ last.started_at }} → + {{ last.finished_at }} + + ({{ last.get_status_display }}) + + + {% endif %} + {% endwith %} + {% endfor %} + {% endif %} + + {% else %} + {% trans "Log in to publish." %} + {% endif %} + {% else %} +

{% trans "This book can't be published yet, because:" %}

+
  • {{ publishable_error }}
+ {% endif %} +
+
+
-
-
-
- -{% if book.dc_cover_image %} - {{ book.dc_cover_image }} -{% endif %} -

-
- -Okładka w rozmiarze - x - -
-
-
-

{% trans "Last published" %}: - {% if book.last_published %} - {{ book.last_published }} - {% else %} - — - {% endif %} -

- -{% if publishable %} -

- {% trans "Full XML" %}
- {% trans "HTML version" %}
- {% trans "TXT version" %}
- {% trans "PDF version" %}
- {% trans "PDF version for mobiles" %}
- {% trans "EPUB version" %}
- {% trans "MOBI version" %}
-

- - {% if user.is_authenticated %} - -
{% csrf_token %} - {{ publish_options_form.as_p }} - - - -
- {% else %} - {% trans "Log in to publish." %} - {% endif %} -{% else %} -

{% trans "This book can't be published yet, because:" %}

-
  • {{ publishable_error }}
-{% endif %} -
+ + {% if stats %} +
+
+

{% trans "Statistics" %}

+
+
+ + + + + + + + + + + + + + {% include 'documents/book_stats.html' with book=doc stats=stats depth=0 %} + +
+ {% trans "book" %} + {% trans "characters" %}{% trans "characters (with footnotes)" %}{% trans "words" %}{% trans "words (with footnotes)" %}{% trans "wiersze (+ inne znaki)" %}{% trans "wiersze (+ inne znaki, z przypisami)" %}
+
+{% endif %} {% endblock content %}