X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/462d84ea8718cd3ca1112fe11c2120a0f20f475f..fc46d508443bdc4ad72d047d29a5d453e6799f9d:/wolnelektury/templates/catalogue/book_searched.html diff --git a/wolnelektury/templates/catalogue/book_searched.html b/wolnelektury/templates/catalogue/book_searched.html index 4b92c19d2..8dfa053fd 100644 --- a/wolnelektury/templates/catalogue/book_searched.html +++ b/wolnelektury/templates/catalogue/book_searched.html @@ -1,5 +1,5 @@ {% extends "catalogue/book_short.html" %} -{% load i18n %} +{% load i18n catalogue_tags %} {% block box-class %}search-result{% endblock %} @@ -8,15 +8,14 @@
In text:
- + {% else %} {% if hit.fragment %}{% trans "In fragment" %} - {% if hit.themes_hit %}{% trans ", for themes:" %}{% for t in hit.themes_hit %}{{t.name}} {% endfor %}{% endif %} -
- {{hit.fragment.short_text|safe}} + {% if hit.themes_hit %} + {% inline_tag_list hit.themes_hit %} + {% endif %} + {{hit.fragment.text|truncatewords_html:15|safe}}