Some tests for various API endpoints.
[wolnelektury.git] / src / catalogue / templates / catalogue / book_detail.html
index 4f590ce..865aca2 100644 (file)
@@ -13,7 +13,7 @@
 {% block bodyid %}book-detail{% endblock %}
 
 {% block body %}
-  {% ssi_include 'catalogue_book_wide' pk=book.pk %}
+  {% include 'catalogue/book_wide.html' %}
 
   {% work_list book_children %}
 
 
 
   <h2>{% trans "Information about the work" %}</h2>
-  {% for tag in tags %}
+  {% for author in book.authors %}
     <div class="white-box">
-      <a style="display:block" href="{{ tag.get_absolute_url }}">
-        {% ssi_include 'catalogue_tag_box' pk=tag.pk %}
+      <a style="display:block" href="{{ author.get_absolute_url }}">
+        {% ssi_include 'catalogue_tag_box' pk=author.pk %}
       </a>
     </div>
   {% endfor %}
       {% trans "in" %} {% source_name extra_info.source_url %}
     </div>
   {% endif %}
-  <div class="white-box"><a href="{{ book.xml_file.url }}">{% trans "Source XML file" %}</a></div>
+  {% if book|status:user != 'closed' %}
+    <div class="white-box"><a href="{{ book.xml_url }}">{% trans "Source XML file" %}</a></div>
+  {% endif %}
   {% if extra_info.about and not hide_about %}
     <div class="white-box">
       {% trans "Book on" %} <a href="{{ extra_info.about }}">{% trans "Editor's Platform" %}</a>
     </div>
   {% endif %}
-  {% if book.gazeta_link %}
-    <div class="white-box">
-      <a href="{{ book.gazeta_link }}">{% trans "Book description on Lektury.Gazeta.pl" %}</a>
-    </div>
-  {% endif %}
   {% if book.wiki_link %}
     <div class="white-box">
       <a href="{{ book.wiki_link }}">{% trans "Book description on Wikipedia" %}</a>