X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/55bc643c16dc56cf2377bd5c4d6e924d5fc62698..b2d05b5ed588e0829c4cec01796a20a803b301db:/wolnelektury/templates/catalogue/book_searched.html diff --git a/wolnelektury/templates/catalogue/book_searched.html b/wolnelektury/templates/catalogue/book_searched.html index d719f30e2..4b92c19d2 100644 --- a/wolnelektury/templates/catalogue/book_searched.html +++ b/wolnelektury/templates/catalogue/book_searched.html @@ -1,34 +1,27 @@ -{% extends "catalogue/book_wide.html" %} +{% extends "catalogue/book_short.html" %} {% load i18n %} -{% block box-class %}book-wide-box search-result{% endblock %} +{% block box-class %}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 %} +{% block right-column %} +
+ {% for hit in hits %} {% if hit.snippets %} - +

In text:

+ {% else %} - {% if hit.fragment %} - - {% endif %} + {% 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}} +
{% endif %} -{% endfor %} - + {% endif %} + {% endfor %}
+ {% endblock %} +