Epub debugging.
[redakcja.git] / src / documents / templates / documents / book_detail.html
index 08d8c36..2d58734 100644 (file)
@@ -2,6 +2,7 @@
 {% load book_list i18n %}
 {% load bootstrap4 %}
 {% load depot %}
+{% load isbn %}
 
 
 {% block titleextra %}{{ book.title }}{% endblock %}
               <a href="{% url 'documents_book_txt' book.slug %}" rel="nofollow">{% trans "TXT version" %}</a><br/>
               <a href="{% url 'documents_book_pdf' book.slug %}" rel="nofollow">{% trans "PDF version" %}</a><br/>
               <a href="{% url 'documents_book_pdf_mobile' book.slug %}" rel="nofollow">{% trans "PDF version for mobiles" %}</a><br/>
-              <a href="{% url 'documents_book_epub' book.slug %}" rel="nofollow">{% trans "EPUB version" %}</a><br/>
+              <a href="{% url 'documents_book_epub' book.slug %}" rel="nofollow">{% trans "EPUB version" %}</a>
+              <a href="{% url 'documents_book_epubcheck' book.slug %}" rel="nofollow">sprawdź</a><br/>
               <a href="{% url 'documents_book_mobi' book.slug %}" rel="nofollow">{% trans "MOBI version" %}</a><br/>
             </p>
 
+            {% isbn_status book %}
+
             {% if user.is_authenticated %}
               <!--
                    Angel photos:
               </form>
 
 
-              {% if perms.depot.add_shopbookpublish %}
-                {% depot_shops book as shops %}
-                {% for shop in shops %}
+              {% if perms.depot.add_sitebookpublish %}
+                {% depot_sites book as sites %}
+                {% for site in sites %}
                   <hr>
-                  <h3 class="mb-3">{{ shop.name }}</h3>
-                  {% if not shop.errors %}
-                    <form method="post" action="{% url 'depot_shop_publish' shop.shop_id book.pk %}">
+                  <h3 class="mb-3">{{ site.name }}</h3>
+                  {% if not site.errors %}
+                    <form method="post" action="{% url 'depot_site_publish' site.site_id book.pk %}">
                       {% csrf_token %}
                       <button class="btn btn-primary mb-3" type="submit">
-                        Opublikuj na {{ shop.name }}
+                        Opublikuj na {{ site.name }}
                       </button>
                     </form>
-                    {% if shop.comment %}
+                    {% for info in site.info %}
                       <div class="alert alert-info">
-                        {{ shop.comment }}
+                        {{ info }}
                       </div>
-                    {% endif %}
+                    {% endfor %}
                   {% else %}
-                    {% for error in shop.errors %}
+                    {% for error in site.errors %}
                       <div class="alert alert-danger">
                         {{ error }}
                       </div>
                     {% endfor %}
                   {% endif %}
-                  {% for warning in shop.warnings %}
+                  {% for warning in site.warnings %}
                     <div class="alert alert-warning">
                       {{ warning }}
                     </div>
                   {% endfor %}
-                  {% if shop.id %}
-                    id:{{ shop.id }}
+                  {% if site.id %}
+                    id:{{ site.id }}
                   {% endif %}
-                  {% with last=shop.last %}
+                  {% with last=site.last %}
                   {% if last %}
                     {{ last.created_at }} &rarr;
                     {{ last.started_at }} &rarr;
                     <span title="{{ last.error }}">
                       ({{ last.get_status_display }})
                     </span>
-                    <!-- {{ shop.last.id }} -->
+                    <!-- {{ site.last.id }} -->
                   {% endif %}
                   {% endwith %}
                 {% endfor %}