Fetch thumbnails from wikidata.
[wolnelektury.git] / src / catalogue / templates / catalogue / book_text.html
index a771c17..e10bc96 100644 (file)
@@ -82,6 +82,9 @@
       {% if prev %}
         <a style="display:inline-block;padding: 1em;" href="{% url 'book_text' prev.slug %}">&larr;&nbsp;{{ prev.title }}</a>
       {% endif %}
+      <div style="text-align:center; margin-top:1em;">
+      {% content_warning book %}
+      </div>
       <div style="clear:both;"></div>
       {{ book_text|safe }}
     {% endwith %}
   {% localize off %}
   <script type="application/json" id="interesting-references">
    {
-       {% for ref in book.reference_set.all %}
+       {% for ref in book.references %}
        {% if ref.entity.is_interesting %}
        "{{ ref.entity.uri }}": {
            {% if ref.entity.lat and ref.entity.lon %}