1 {% extends "catalogue/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">
 
  19 {% if editable %}<form method='POST'>{% csrf_token %}{% endif %}
 
  20     {% bootstrap_form form %}
 
  23         <button type="submit" class="btn btn-primary">{% trans "Save" %}</button>
 
  26 {% if editable %}</form>{% endif %}
 
  30     <p><a href="{% url 'catalogue_book_gallery' book.slug %}">{% trans "Edit gallery" %}</a></p>
 
  33     <p style="text-align:right"><a class="btn btn-sm btn-danger" href="{% url 'catalogue_book_append' book.slug %}">{% trans "Append to other book" %}</a></p>
 
  38   <div class="card mt-4">
 
  39     <div class="card-header">
 
  40       <h2>{% trans "Chunks" %}</h2>
 
  42     <div class="card-body">
 
  44     <table class='single-book-list table'><tbody>
 
  45     {% for chunk in book %}
 
  46         {% include 'catalogue/book_list/chunk.html' %}
 
  55 <div class='card mt-4'>
 
  57 <div class="card-header">
 
  58   <h2>{% trans "Publication" %}</h2>
 
  60 <div class="card-body">
 
  62 <div class="col-lg-3">
 
  63 <img class="cover-preview" src="{% url 'cover_preview' book.slug %}" />
 
  64 {% if book.dc_cover_image %}
 
  65     <a href="{{ book.dc_cover_image.get_absolute_url }}">{{ book.dc_cover_image }}</a>
 
  68 <div class="col-lg-9">
 
  69 <p>{% trans "Last published" %}: 
 
  70     {% if book.last_published %}
 
  71         {{ book.last_published }}
 
  79     <a href="{% url 'catalogue_book_xml' book.slug %}" rel="nofollow">{% trans "Full XML" %}</a><br/>
 
  80     <a target="_blank" href="{% url 'catalogue_book_html' book.slug %}" rel="nofollow">{% trans "HTML version" %}</a><br/>
 
  81     <a href="{% url 'catalogue_book_txt' book.slug %}" rel="nofollow">{% trans "TXT version" %}</a><br/>
 
  82     <a href="{% url 'catalogue_book_pdf' book.slug %}" rel="nofollow">{% trans "PDF version" %}</a><br/>
 
  83     <a href="{% url 'catalogue_book_pdf_mobile' book.slug %}" rel="nofollow">{% trans "PDF version for mobiles" %}</a><br/>
 
  84     <a href="{% url 'catalogue_book_epub' book.slug %}" rel="nofollow">{% trans "EPUB version" %}</a><br/>
 
  85     <a href="{% url 'catalogue_book_mobi' book.slug %}" rel="nofollow">{% trans "MOBI version" %}</a><br/>
 
  88     {% if user.is_authenticated %}
 
  91         Angels in Ely Cathedral (http://www.flickr.com/photos/21804434@N02/4483220595/) /
 
  92         mira66 (http://www.flickr.com/photos/21804434@N02/) /
 
  93         CC BY 2.0 (http://creativecommons.org/licenses/by/2.0/)
 
  95         <form method="POST" action="{% url 'catalogue_publish' book.slug %}">{% csrf_token %}
 
  96             {{ publish_options_form.as_p }}
 
  97             <img src="{{ STATIC_URL }}img/angel-left.png" style="vertical-align: middle" />
 
  98             <button id="publish-button" type="submit">
 
  99                 <span>{% trans "Publish" %}</span></button>
 
 100             <img src="{{ STATIC_URL }}img/angel-right.png" style="vertical-align: middle" />
 
 103         <a href="{% url 'cas_ng_login' %}">{% trans "Log in to publish." %}</a>
 
 106     <p>{% trans "This book can't be published yet, because:" %}</p>
 
 107     <ul><li>{{ publishable_error }}</li></ul>
 
 112 {% endblock content %}