refactor tagged_object_list
[wolnelektury.git] / src / catalogue / templates / catalogue / tag_box.html
index e16e553..1398ca9 100644 (file)
@@ -2,11 +2,9 @@
 {% 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>{% trans "No description." %}</em>
-    {% endif %}
+  <h2>{% trans tag.category as c %}{{ c|capfirst }}: {{ tag }}</h2>
+  {% if tag.description %}
+    {{ tag.description|strip_tag:"a"|safe|truncatewords_html:40 }}
+  {% endif %}
 </div>
 {% endspaceless %}