X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0ce414772bea056d8bd6cbd15ed589d4fc827ce9..b2b4f8f39a4b15cbc3b9af7c06f75bbed9a84c88:/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 e16e5534d..1398ca9fb 100644 --- a/src/catalogue/templates/catalogue/tag_box.html +++ b/src/catalogue/templates/catalogue/tag_box.html @@ -2,11 +2,9 @@ {% load i18n %} {% load catalogue_tags %}
-

{% trans tag.category as c %}{{ c|capfirst }}: {{ tag }}

- {% if tag.description %} - {{ tag.description|safe|truncatewords_html:40 }} - {% else %} - {% trans "No description." %} - {% endif %} +

{% trans tag.category as c %}{{ c|capfirst }}: {{ tag }}

+ {% if tag.description %} + {{ tag.description|strip_tag:"a"|safe|truncatewords_html:40 }} + {% endif %}
{% endspaceless %}