book page fix
[wolnelektury.git] / src / catalogue / templates / catalogue / tag_box.html
index 122b670..f76df32 100644 (file)
@@ -1,13 +1,11 @@
 {% spaceless %}
-{% load i18n %}
-{% load catalogue_tags %}
-<div class="white-box normal-text">
+  {% 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>
+      {{ tag.description|strip_tag:"a"|safe|truncatewords_html:40 }}
     {% endif %}
-
-</div>
+  </div>
 {% endspaceless %}