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