1 {% extends "documents/base.html" %}
2 {% load book_list i18n %}
6 {% block titleextra %}{{ book.title }}{% endblock %}
11 <div class="card mt-4">
12 <div class="card-header">
13 <h1>{{ book.title }}</h1>
15 <div class="card-body">
17 <div class="col-md-8">
20 {% if editable %}<form method='POST'>{% csrf_token %}{% endif %}
21 {% bootstrap_form form %}
24 <button type="submit" class="btn btn-primary">{% trans "Save" %}</button>
27 {% if editable %}</form>{% endif %}
31 <p><a href="{% url 'documents_book_gallery' book.slug %}">{% trans "Edit gallery" %}</a></p>
34 <p style="text-align:right"><a class="btn btn-sm btn-danger" href="{% url 'documents_book_append' book.slug %}">{% trans "Append to other book" %}</a></p>
39 <div class="col-md-4">
41 {{ book.catalogue_book }}
47 <div class="card mt-4">
48 <div class="card-header">
49 <h2>{% trans "Chunks" %}</h2>
51 <div class="card-body">
53 <table class='single-book-list table'><tbody>
54 {% for chunk in book %}
55 {% include 'documents/book_list/chunk.html' %}
64 <div class='card mt-4'>
66 <div class="card-header">
67 <h2>{% trans "Publication" %}</h2>
69 <div class="card-body">
71 <div class="col-lg-3">
72 <img class="cover-preview" src="{% url 'cover_preview' book.slug %}" />
73 {% if book.dc_cover_image %}
74 <a href="{{ book.dc_cover_image.get_absolute_url }}">{{ book.dc_cover_image }}</a>
77 <form action="{% url 'cover_preview' book.slug %}">
78 <input type="hidden" name="download" value="1">
80 <input name="width" type="number" required value="600"> x <input name="height" type="number" required value="833">
81 <button type="submit" class="btn btn-sm btn-primary">Pobierz</button>
84 <div class="col-lg-9">
85 <p>{% trans "Last published" %}:
86 {% if book.last_published %}
87 {{ book.last_published }}
95 <a href="{% url 'documents_book_xml' book.slug %}" rel="nofollow">{% trans "Full XML" %}</a><br/>
96 <a target="_blank" href="{% url 'documents_book_html' book.slug %}" rel="nofollow">{% trans "HTML version" %}</a><br/>
97 <a href="{% url 'documents_book_txt' book.slug %}" rel="nofollow">{% trans "TXT version" %}</a><br/>
98 <a href="{% url 'documents_book_pdf' book.slug %}" rel="nofollow">{% trans "PDF version" %}</a><br/>
99 <a href="{% url 'documents_book_pdf_mobile' book.slug %}" rel="nofollow">{% trans "PDF version for mobiles" %}</a><br/>
100 <a href="{% url 'documents_book_epub' book.slug %}" rel="nofollow">{% trans "EPUB version" %}</a><br/>
101 <a href="{% url 'documents_book_mobi' book.slug %}" rel="nofollow">{% trans "MOBI version" %}</a><br/>
104 {% if user.is_authenticated %}
107 Angels in Ely Cathedral (http://www.flickr.com/photos/21804434@N02/4483220595/) /
108 mira66 (http://www.flickr.com/photos/21804434@N02/) /
109 CC BY 2.0 (http://creativecommons.org/licenses/by/2.0/)
111 <form method="POST" action="{% url 'documents_publish' book.slug %}">{% csrf_token %}
112 {{ publish_options_form.as_p }}
113 <img src="{{ STATIC_URL }}img/angel-left.png" style="vertical-align: middle" />
114 <button id="publish-button" type="submit">
115 <span>{% trans "Publish" %}</span></button>
116 <img src="{{ STATIC_URL }}img/angel-right.png" style="vertical-align: middle" />
119 <a href="{% url 'cas_ng_login' %}">{% trans "Log in to publish." %}</a>
122 <p>{% trans "This book can't be published yet, because:" %}</p>
123 <ul><li>{{ publishable_error }}</li></ul>
128 {% endblock content %}