1 {% extends "wiki/base.html" %}
6 <a href="{% url wiki_book_edit book.slug %}">{% trans "edit" %}</a>
7 <h1>{{ book.title }}</h1>
11 <tr class="chunk-{{ c.grade }}">
12 <td><a target="_blank" href="{{ c.chunk.get_absolute_url }}">{{ c.chunk.comment }}</a></td>
13 <td>{% for fix in c.fix %}
15 {% ifequal fix "wl" %}<span class="fix"
16 title="{% trans "add basic document structure" %}"
17 ></></span>{% endifequal %}
19 {% ifequal fix "bad-master" %}<span class="fix"
20 title='{% trans "change master tag to" %} "{{ first_master }}"'
21 >master</span>{% endifequal %}
23 {% ifequal fix "trim-begin" %}<span class="fix"
24 title="{% trans "add begin trimming tag" %}"
25 >✁</span>{% endifequal %}
27 {% ifequal fix "trim-end" %}<span class="fix"
28 title="{% trans "add end trimming tag" %}"
29 >✃</span>{% endifequal %}
33 {% ifequal c.grade "plain" %}
34 <span class="fix-info">{% trans "unstructured text" %}</span>
37 {% ifequal c.grade "xml" %}
38 <span class="fix-info">{% trans "unknown XML" %}</span>
41 {% ifequal c.grade "wl-broken" %}
42 <span class="fix-info">{% trans "broken document" %}</span>
46 <td><a href="{% url wiki_chunk_edit book.slug c.chunk.slug%}">[{% trans "edit" %}]</a></td>
47 <td>{% if c.chunk.publishable %}P{% endif %}</td>
48 <td><a href="{% url wiki_chunk_add book.slug c.chunk.slug %}">[+]</a></td>
53 <form method="POST" action="">
54 {% if choose_master %}
57 <button type="submit">{% trans "Apply fixes" %}</button>
63 <p><a href="{% url wiki_book_append book.slug %}">{% trans "Append to other book" %}</a></p>
65 <p>{% trans "Last published" %}: {{ book.last_published }}</p>
67 {% if book.publishable %}
69 <a href="{% url wiki_book_xml book.slug %}">{% trans "Full XML" %}</a><br/>
70 <a target="_blank" href="{% url wiki_book_html book.slug %}">{% trans "HTML version" %}</a><br/>
71 <a href="{% url wiki_book_txt book.slug %}">{% trans "TXT version" %}</a><br/>
73 <a href="{% url wiki_book_epub book.slug %}">{% trans "EPUB version" %}</a><br/>
74 <a href="{% url wiki_book_pdf book.slug %}">{% trans "PDF version" %}</a><br/>
80 Angels in Ely Cathedral (http://www.flickr.com/photos/21804434@N02/4483220595/) /
81 mira66 (http://www.flickr.com/photos/21804434@N02/) /
82 CC BY 2.0 (http://creativecommons.org/licenses/by/2.0/)
84 <form method="POST" action="{% url wiki_publish book.slug %}">{% csrf_token %}
85 <img src="{{ STATIC_URL }}img/angel-left.png" style="vertical-align: middle" />
86 <button id="publish-button" type="submit">
87 <span>{% trans "Publish" %}</span></button>
88 <img src="{{ STATIC_URL }}img/angel-right.png" style="vertical-align: middle" />
91 {% trans "This book cannot be published yet" %}
94 {% endblock leftcolumn %}
96 {% block rightcolumn %}
99 {% endblock rightcolumn %}