4e914328cee3ce8e67191226bcbf8c155db69c50
[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               {{hit.snippet|safe}}
19             </a>
20           </div>
21         {% endif %}
22       {% endfor %}
23     </div>
24     {% include 'catalogue/snippets/jplayer.html' %}
25   </div>
26 {% endblock %}