when published date is NaN, set to 0
[wolnelektury.git] / wolnelektury / 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.snippets %}
11   <div class="snippet-text"><a href="{% url book_text book.slug %}#sec{{hit.section_number}}">{{hit.snippets.0|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}}">{{hit.fragment.text|truncatewords_html:15|safe}}</a>
19   </div>
20   {% endif %}
21   {% endif %}
22   {% endfor %}
23 </div>
24
25 {% endblock %}
26