basic fragment choosing
[wolnelektury.git] / wolnelektury / templates / catalogue / chosen_fragment.html
diff --git a/wolnelektury/templates/catalogue/chosen_fragment.html b/wolnelektury/templates/catalogue/chosen_fragment.html
new file mode 100755 (executable)
index 0000000..a23638e
--- /dev/null
@@ -0,0 +1,11 @@
+{% load i18n %}
+{% load removewholetags from catalogue_tags %}
+
+{% if fragment %}
+<a href="{{ fragment.get_absolute_url }}" class="cite">
+    <blockquote class="cite-body">
+        {{ fragment.text|removewholetags:"a"|truncatewords_html:15|safe }}
+    </blockquote>
+    <p class="mono">Adam Mickiewicz, Dziady część III</p>
+</a>
+{% endif %}