Librarian in regular requirements.
[redakcja.git] / apps / catalogue / templates / catalogue / book_detail.html
index 7f339bc..4712edf 100755 (executable)
@@ -1,5 +1,9 @@
 {% extends "catalogue/base.html" %}
-{% load book_list comments i18n %}
+{% load book_list i18n %}
+
+
+{% block titleextra %}{{ book.title }}{% endblock %}
+
 
 {% block content %}
 
@@ -17,7 +21,9 @@
 {% if editable %}</form>{% endif %}
 
 {% if editable %}
+    {% if book.gallery %}
     <p><a href="{% url 'catalogue_book_gallery' book.slug %}">{% trans "Edit gallery" %}</a></p>
+    {% endif %}
 
     <p><a href="{% url 'catalogue_book_append' book.slug %}">{% trans "Append to other book" %}</a></p>
 {% endif %}
@@ -63,7 +69,9 @@
     <a target="_blank" href="{% url 'catalogue_book_html' book.slug %}" rel="nofollow">{% trans "HTML version" %}</a><br/>
     <a href="{% url 'catalogue_book_txt' book.slug %}" rel="nofollow">{% trans "TXT version" %}</a><br/>
     <a href="{% url 'catalogue_book_pdf' book.slug %}" rel="nofollow">{% trans "PDF version" %}</a><br/>
+    <a href="{% url 'catalogue_book_pdf_mobile' book.slug %}" rel="nofollow">{% trans "PDF version for mobiles" %}</a><br/>
     <a href="{% url 'catalogue_book_epub' book.slug %}" rel="nofollow">{% trans "EPUB version" %}</a><br/>
+    <a href="{% url 'catalogue_book_mobi' book.slug %}" rel="nofollow">{% trans "MOBI version" %}</a><br/>
     </p>
 
     {% if user.is_authenticated %}
@@ -74,6 +82,7 @@
         CC BY 2.0 (http://creativecommons.org/licenses/by/2.0/)
         -->
         <form method="POST" action="{% url 'catalogue_publish' book.slug %}">{% csrf_token %}
+            {{ publish_options_form.as_p }}
             <img src="{{ STATIC_URL }}img/angel-left.png" style="vertical-align: middle" />
             <button id="publish-button" type="submit">
                 <span>{% trans "Publish" %}</span></button>
 </div>
 
 
-
-<div class='section'>
-    <h2>{% trans "Comments" %}</h2>
-
-    {% render_comment_list for book %}
-    {% with book.get_absolute_url as next %}
-        {% render_comment_form for book %}
-    {% endwith %}
-</div>
-
 {% endblock content %}