Added short_html method to Book model and removed (no longer used) book template...
[wolnelektury.git] / templates / catalogue / book_short.html
diff --git a/templates/catalogue/book_short.html b/templates/catalogue/book_short.html
new file mode 100644 (file)
index 0000000..eca279e
--- /dev/null
@@ -0,0 +1,13 @@
+<div class="book">
+    {# {% if request.user.is_authenticated %} #}
+    <div class="change-sets">
+        <a href="{% url catalogue.views.book_sets book.slug %}" class="jqm-trigger">Zestawy</a>
+    </div>
+    {# {% endif %} #}
+    <div class="book-thumbnail"></div>
+    <div class="book-description">
+        <h2><a href="{{ book.get_absolute_url }}">{{ book.title }}</a></h2>
+        <p style="margin: 0">Formaty: {{ formats|join:", "|safe }}</p>
+        <p style="margin: 0">Utwór w kategoriach: {{ tags|join:", "|safe }}</p>
+    </div>
+</div>