Content warnings.
[wolnelektury.git] / src / catalogue / templates / catalogue / book_short.html
index 0c63179..1df91ca 100644 (file)
         <ul class="book-box-tools">
           <li class="book-box-read">
             {% if book.html_file %}
+           <div>{% content_warning book %}</div>
               <a href="{% url 'book_text' book.slug %}" class="downarrow">{% trans "Read online" %}</a>
             {% endif %}
             {% if book.print_on_demand %}
           </li>
         </ul>
       {% else %}
-        <p class="book-box-tools book-box-tools-warn">{% trans "For now this work is only available for our subscribers." %}
-          <a href="/towarzystwo/">Dołącz do Towarzystwa Przyjaciół Wolnych Lektur</a>
-       </p>
+        {% block preview-info %}
+          <p class="book-box-tools book-box-tools-warn">
+            {% trans "For now this work is only available for our subscribers." %}
+           <a href="/towarzystwo/">Dołącz do Towarzystwa Przyjaciół Wolnych Lektur</a>
+         </p>
+          <div>{% content_warning book %}</div>
+        {% endblock %}
       {% endif %}
       {% endcache %}
       {% block book-box-extra-info %}{% endblock %}