X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ce8d791a5298e0cb2569034aec4c8b57afac97b2..636fd34b05155b81691222ad80c4a3746d0c2fc1:/apps/catalogue/templates/catalogue/book_detail.html diff --git a/apps/catalogue/templates/catalogue/book_detail.html b/apps/catalogue/templates/catalogue/book_detail.html index 8e9c1f10..4712edf3 100755 --- a/apps/catalogue/templates/catalogue/book_detail.html +++ b/apps/catalogue/templates/catalogue/book_detail.html @@ -1,109 +1,103 @@ {% extends "catalogue/base.html" %} -{% load comments i18n %} +{% load book_list i18n %} -{% block leftcolumn %} -{% trans "edit" %} -

{{ book.title }}

+{% block titleextra %}{{ book.title }}{% endblock %} - - {% for c in chunks %} - - - - - - - - +
{{ c.chunk.title }}{% for fix in c.fix %} - {% ifequal fix "wl" %}</>{% endifequal %} +{% block content %} - {% ifequal fix "bad-master" %}master{% endifequal %} - {% ifequal fix "trim-begin" %}{% endifequal %} +

{{ book.title }}

- {% ifequal fix "trim-end" %}{% endifequal %} - {% endfor %} +{% 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 %} - {% ifequal c.grade "plain" %} - {% trans "unstructured text" %} - {% endifequal %} - {% ifequal c.grade "xml" %} - {% trans "unknown XML" %} - {% endifequal %} +
- {% ifequal c.grade "wl-broken" %} - {% trans "broken document" %} - {% endifequal %} +

{% trans "Chunks" %}

-
[{% trans "edit" %}]{% if c.chunk.publishable %}P{% endif %}{% if c.chunk.user.is_authenticated %} - {{ c.chunk.user }} - {% endif %}[+]
+ {% for chunk in book %} + {{ chunk.short_html|safe }} {% endfor %} - {% if need_fixing %} - - {% endif %} -
-
- {% csrf_token %} - {% if choose_master %} - {{ form.master }} - {% endif %} - -
-
+ + + + -

{% trans "Append to other book" %}

-

{% trans "Last published" %}: {{ book.last_published }}

+
-{% if book.publishable %} + +

{% 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" %}
- {% comment %} - {% trans "EPUB version" %}
- {% trans "PDF version" %}
- {% endcomment %} + {% trans "Full XML" %}
+ {% trans "HTML version" %}
+ {% trans "TXT version" %}
+ {% trans "PDF version" %}
+ {% trans "PDF version for mobiles" %}
+ {% trans "EPUB version" %}
+ {% trans "MOBI version" %}

- {% trans "This book cannot be published yet" %} - {% comment %} - -
{% csrf_token %} - - - -
- {% endcomment %} + {% if user.is_authenticated %} + +
{% csrf_token %} + {{ publish_options_form.as_p }} + + + +
+ {% else %} + {% trans "Log in to publish." %} + {% endif %} {% else %} - {% trans "This book cannot be published yet" %} +

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

+ {% endif %} -{% endblock leftcolumn %} +
+
-{% block rightcolumn %} -{% render_comment_list for book %} -{% with book.get_absolute_url as next %} - {% render_comment_form for book %} -{% endwith %} -{% endblock rightcolumn %} +{% endblock content %}