Merge branch 'master' into sunburnt
[wolnelektury.git] / apps / catalogue / templates / catalogue / book_searched.html
1 {% extends "catalogue/book_short.html" %}
2 {% load i18n catalogue_tags %}
3
4
5 {% block box-class %}search-result{% endblock %}
6
7 {% block right-column %}
8 <div class="snippets">
9   {% for hit in hits %}
10   {% if hit.snippet %}
11   <div class="snippet-text"><a href="{% url book_text book.slug %}#sec{{hit.section_number}}">{{hit.snippet|safe}}</a></div>
12   {% else %}
13   {% if hit.fragment %}
14   <div class="snippet-text">
15     {% if hit.themes_hit %}
16     {% inline_tag_list hit.themes_hit  %}
17     {% endif %}
18     <a href="{{hit.fragment.get_absolute_url}}">
19       {% if hit.snippet %}
20         {{hit.snippet|safe}}
21       {% else %}
22         {{hit.fragment.text|truncatewords_html:15|safe}}
23       {% endif %}
24     </a>
25   </div>
26   {% endif %}
27   {% endif %}
28   {% endfor %}
29 </div>
30
31 {% endblock %}
32