1 {% extends "catalogue/base.html" %}
2 {% load book_list comments i18n %}
7 <h1>{{ book.title }}</h1>
10 {% if editable %}<form method='POST'>{% csrf_token %}{% endif %}
11 <table class='editable'><tbody>
14 <tr><td></td><td><button type="submit">{% trans "Save" %}</button></td></tr>
17 {% if editable %}</form>{% endif %}
21 <p><a href="{% url catalogue_book_append book.slug %}">{% trans "Append to other book" %}</a></p>
27 <h2>{% trans "Chunks" %}</h2>
29 <table class='single-book-list'><tbody>
30 {% for chunk in book %}
31 {{ chunk.short_html|safe }}
42 <h2>{% trans "Publication" %}</h2>
44 <p>{% trans "Last published" %}:
45 {% if book.last_published %}
46 {{ book.last_published }}
54 <a href="{% url catalogue_book_xml book.slug %}">{% trans "Full XML" %}</a><br/>
55 <a target="_blank" href="{% url catalogue_book_html book.slug %}">{% trans "HTML version" %}</a><br/>
56 <a href="{% url catalogue_book_txt book.slug %}">{% trans "TXT version" %}</a><br/>
57 <a href="{% url catalogue_book_pdf book.slug %}">{% trans "PDF version" %}</a><br/>
58 <a href="{% url catalogue_book_epub book.slug %}">{% trans "EPUB version" %}</a><br/>
61 {% if user.is_authenticated %}
64 Angels in Ely Cathedral (http://www.flickr.com/photos/21804434@N02/4483220595/) /
65 mira66 (http://www.flickr.com/photos/21804434@N02/) /
66 CC BY 2.0 (http://creativecommons.org/licenses/by/2.0/)
68 <form method="POST" action="{% url catalogue_publish book.slug %}">{% csrf_token %}
69 <img src="{{ STATIC_URL }}img/angel-left.png" style="vertical-align: middle" />
70 <button id="publish-button" type="submit">
71 <span>{% trans "Publish" %}</span></button>
72 <img src="{{ STATIC_URL }}img/angel-right.png" style="vertical-align: middle" />
75 <a href="{% url login %}">{% trans "Log in to publish." %}</a>
78 <p>{% trans "This book can't be published yet, because:" %}</p>
79 <ul><li>{{ publishable_error }}</li></ul>
87 <h2>{% trans "Comments" %}</h2>
89 {% render_comment_list for book %}
90 {% with book.get_absolute_url as next %}
91 {% render_comment_form for book %}
95 {% endblock content %}