fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated and fixes.
[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
index
e16e553
..
f76df32
100644
(file)
--- a/
src/catalogue/templates/catalogue/tag_box.html
+++ b/
src/catalogue/templates/catalogue/tag_box.html
@@
-1,12
+1,11
@@
{% spaceless %}
{% 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 %}
<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 %}
{% endif %}
-</div>
+
</div>
{% endspaceless %}
{% endspaceless %}