X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/55bc643c16dc56cf2377bd5c4d6e924d5fc62698..6ce172931557c6c3b5a3f3eefd9d3e10c9c03d05:/wolnelektury/templates/catalogue/book_searched.html diff --git a/wolnelektury/templates/catalogue/book_searched.html b/wolnelektury/templates/catalogue/book_searched.html index d719f30e2..1a345ed27 100644 --- a/wolnelektury/templates/catalogue/book_searched.html +++ b/wolnelektury/templates/catalogue/book_searched.html @@ -1,34 +1,26 @@ -{% extends "catalogue/book_wide.html" %} -{% load i18n %} +{% extends "catalogue/book_short.html" %} +{% load i18n catalogue_tags %} -{% 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 %} - + {% else %} - {% if hit.fragment %} - + {% if hit.fragment %} +
+ {% if hit.themes_hit %} + {% inline_tag_list hit.themes_hit %} {% endif %} + {{hit.fragment.text|truncatewords_html:15|safe}} +
{% endif %} -{% endfor %} - + {% endif %} + {% endfor %}
+ {% endblock %} +