Generally working version.
[wolnelektury.git] / src / catalogue / templates / catalogue / tag_box.html
diff --git a/src/catalogue/templates/catalogue/tag_box.html b/src/catalogue/templates/catalogue/tag_box.html
new file mode 100644 (file)
index 0000000..122b670
--- /dev/null
@@ -0,0 +1,13 @@
+{% spaceless %}
+{% load i18n %}
+{% load catalogue_tags %}
+<div class="white-box normal-text">
+    <h2>{% trans tag.category as c %}{{ c|capfirst }}: {{ tag }}</h2>
+    {% if tag.description %}
+    {{ tag.description|safe|truncatewords_html:40 }}
+    {% else %}
+    <em>No description</em>
+    {% endif %}
+
+</div>
+{% endspaceless %}