X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/06e460b91c23f11e92bf5ae711a4ed2226d3a0c7..21cd47e315b2e86edeff93bac5d1eca5b5d2c428:/src/catalogue/templates/catalogue/book_detail.html diff --git a/src/catalogue/templates/catalogue/book_detail.html b/src/catalogue/templates/catalogue/book_detail.html old mode 100755 new mode 100644 index e2735988..85cfcc96 --- a/src/catalogue/templates/catalogue/book_detail.html +++ b/src/catalogue/templates/catalogue/book_detail.html @@ -1,103 +1,80 @@ -{% extends "catalogue/base.html" %} -{% load book_list i18n %} +{% extends "documents/base.html" %} +{% load i18n %} +{% load pagination_tags %} -{% block titleextra %}{{ book.title }}{% endblock %} - -{% block content %} - - -

{{ book.title }}

- - -{% if editable %}
{% csrf_token %}{% endif %} - - {{ form.as_table }} - {% if editable %} - - {% endif %} -
-{% if editable %}
{% endif %} - -{% if editable %} - {% if book.gallery %} -

{% trans "Edit gallery" %}

- {% endif %} - -

{% trans "Append to other book" %}

-{% endif %} - - -
- -

{% trans "Chunks" %}

- - - {% for chunk in book %} - {% include 'catalogue/book_list/chunk.html' %} - {% endfor %} -
- -
- - - -
- - -

{% trans "Publication" %}

- -
- -{% if book.dc_cover_image %} - {{ book.dc_cover_image }} -{% endif %} -
- -

{% 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:" %}

- -{% endif %} - -
-
+{% block titleextra %}{% trans "Catalogue" %}{% endblock %} +{% block content %} +
+
+

{% trans "Catalogue" %}

+
+
+ + {% for author in book.authors.all %} + + + + + + + {% endfor %} + {% for author in book.translator_set.all %} + + + + + + + {% endfor %} + + + + + + + +
+ + {{ author }} + + + {{ author.pd_year|default_if_none:"-" }} + + {{ author.wikidata_link }} + + {{ author.get_priority_display }} +
+ + {{ author }} + + + {{ author.pd_year|default_if_none:"-" }} + + {{ author.wikidata_link }} + + {{ author.get_priority_display }} +
+   + + {{ book.title }} + + + {{ book.pd_year|default_if_none:"-" }} + + {{ book.wikidata_link }} + + {{ book.get_priorty_display }} + + {% for b in book.document_books.all %} + + {{ b }} + + {% endfor %} +
+
+
{% endblock content %}