Updated and fixes.
[wolnelektury.git] / src / catalogue / templates / catalogue / tag_box.html
index e16e553..f76df32 100644 (file)
@@ -1,12 +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>{% trans "No description." %}</em>
+      {{ tag.description|strip_tag:"a"|safe|truncatewords_html:40 }}
     {% endif %}
-</div>
+  </div>
 {% endspaceless %}