1 {% extends "base.html" %}
 
   3 {% load catalogue_tags pagination_tags %}
 
   5 {% block title %}{% trans "Searching in" %} WolneLektury.pl{% endblock %}
 
   7 {% block bodyid %}tagged-object-list{% endblock %}
 
  10     <form action="{% url search %}" method="get" accept-charset="utf-8" id="search-form">
 
  11         <p>{{ form.q }} <input type="submit" value="{% trans "Search" %}" /> <strong>{% trans "or" %}</strong> <a href="{% url main_page %}">{% trans "return to main page" %}</a></p>
 
  16       {% for result in results %}
 
  18         <p><a href="{{result.book.get_absolute_url}}">{{result.book.pretty_title}}</a> (id: {{result.book_id}}, score: {{result.score}})</p>
 
  20           {% for hit in result.process_hits %}
 
  23             <div style="">Tagi/Motywy: {% for tag in hit.themes %}{{tag.name}} {% endfor %}</div>
 
  25             {% for snip in hit.snippets %}
 
  42         <p>{% trans "More than one result matching the criteria found." %}</p>
 
  44         {% for match, link, type in results %}
 
  45           <li>{% trans type %}: <a href='{{ link }}'>
 
  46             {% ifequal type "book" %}
 
  47                 {% book_title match %}
 
  58         <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
 
  60             <p><img src="{{ STATIC_URL }}img/indicator.gif" alt="*"/> {% trans "Loading" %}</p>