X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0d6bbe91d75e82866aaa232eee4a036759446a86..ee7f2fa4a7e08ca2f8c88f2a521ef65cbca3aac4:/wolnelektury/templates/catalogue/book_searched.html diff --git a/wolnelektury/templates/catalogue/book_searched.html b/wolnelektury/templates/catalogue/book_searched.html index 722e3233f..1a345ed27 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 @@
{% for hit in hits %} {% if hit.snippets %} -

In text:

-
{{hit.snippets.0|safe}}
+
{{hit.snippets.0|safe}}
{% 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.get_short_text|safe}} + {% if hit.themes_hit %} + {% inline_tag_list hit.themes_hit %} + {% endif %} + {{hit.fragment.text|truncatewords_html:15|safe}}
{% endif %} {% endif %}