X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/325a7f36de2b6f38c53f6e1dc103807f66944364..55bc643c16dc56cf2377bd5c4d6e924d5fc62698:/wolnelektury/templates/catalogue/book_searched.html diff --git a/wolnelektury/templates/catalogue/book_searched.html b/wolnelektury/templates/catalogue/book_searched.html new file mode 100644 index 000000000..d719f30e2 --- /dev/null +++ b/wolnelektury/templates/catalogue/book_searched.html @@ -0,0 +1,34 @@ +{% extends "catalogue/book_wide.html" %} +{% load i18n %} + + +{% block box-class %}book-wide-box search-result{% endblock %} + +{% block quote %} +{% if hits.0.snippets %} +
{{hits.0.snippets.0|safe}}
+{% else %}{% if hits.0.fragment %} +
{{hits.0.fragment.short_text|safe}}
+{% endif %}{% endif %} + +{% if hits.1 %} +

{% trans "See more" %}

+{% endif %} +{% endblock %} + + +{% block box-append %} +
+ +{% for hit in hits %} + {% if hit.snippets %} +
{{hit.snippets.0|safe}}
+ {% else %} + {% if hit.fragment %} +
{{hit.fragment.short_text|safe}}
+ {% endif %} + {% endif %} +{% endfor %} + +
+{% endblock %}