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">
40 {% with cbook=book.catalogue_book %}
43 <a href="{% url 'catalogue_book' cbook.slug %}">{{ cbook }}</a>
51 <div class="card mt-4">
52 <div class="card-header">
53 <h2>{% trans "Chunks" %}</h2>
55 <div class="card-body">
57 <table class='single-book-list table'><tbody>
58 {% for chunk in book %}
59 {% include 'documents/book_list/chunk.html' %}
68 <div class='card mt-4'>
70 <div class="card-header">
71 <h2>{% trans "Publication" %}</h2>
73 <div class="card-body">
75 <div class="col-lg-3">
76 <img class="cover-preview" src="{% url 'cover_preview' book.slug %}" />
77 {% if book.dc_cover_image %}
78 <a href="{{ book.dc_cover_image.get_absolute_url }}">{{ book.dc_cover_image }}</a>
81 <form action="{% url 'cover_preview' book.slug %}">
82 <input type="hidden" name="download" value="1">
84 <input name="width" type="number" required value="600"> x <input name="height" type="number" required value="833">
85 <button type="submit" class="btn btn-sm btn-primary">Pobierz</button>
88 <div class="col-lg-9">
89 <p>{% trans "Last published" %}:
90 {% if book.last_published %}
91 {{ book.last_published }}
99 <a href="{% url 'documents_book_xml' book.slug %}" rel="nofollow">{% trans "Full XML" %}</a><br/>
100 <a target="_blank" href="{% url 'documents_book_html' book.slug %}" rel="nofollow">{% trans "HTML version" %}</a><br/>
101 <a href="{% url 'documents_book_txt' book.slug %}" rel="nofollow">{% trans "TXT version" %}</a><br/>
102 <a href="{% url 'documents_book_pdf' book.slug %}" rel="nofollow">{% trans "PDF version" %}</a><br/>
103 <a href="{% url 'documents_book_pdf_mobile' book.slug %}" rel="nofollow">{% trans "PDF version for mobiles" %}</a><br/>
104 <a href="{% url 'documents_book_epub' book.slug %}" rel="nofollow">{% trans "EPUB version" %}</a><br/>
105 <a href="{% url 'documents_book_mobi' book.slug %}" rel="nofollow">{% trans "MOBI version" %}</a><br/>
108 {% if user.is_authenticated %}
111 Angels in Ely Cathedral (http://www.flickr.com/photos/21804434@N02/4483220595/) /
112 mira66 (http://www.flickr.com/photos/21804434@N02/) /
113 CC BY 2.0 (http://creativecommons.org/licenses/by/2.0/)
115 <form method="POST" action="{% url 'documents_publish' book.slug %}">{% csrf_token %}
116 {{ publish_options_form.as_p }}
117 <img src="{{ STATIC_URL }}img/angel-left.png" style="vertical-align: middle" />
118 <button id="publish-button" type="submit">
119 <span>{% trans "Publish" %}</span></button>
120 <img src="{{ STATIC_URL }}img/angel-right.png" style="vertical-align: middle" />
123 <a href="{% url 'cas_ng_login' %}">{% trans "Log in to publish." %}</a>
126 <p>{% trans "This book can't be published yet, because:" %}</p>
127 <ul><li>{{ publishable_error }}</li></ul>
136 <div class="card mt-4">
137 <div class="card-header">
138 <h2>{% trans "Statistics" %}</h2>
140 <div class="card-body">
141 <table class="table">
147 <th>{% trans "characters" %}</th>
148 <th>{% trans "characters (with footnotes)" %}</th>
149 <th>{% trans "words" %}</th>
150 <th>{% trans "words (with footnotes)" %}</th>
154 {% with stats=book.wldocument.get_statistics %}
155 {% include 'documents/book_stats.html' with book=book stats=stats depth=0 %}
162 {% endblock content %}