Merge branch 'pretty' of github.com:fnp/wolnelektury into pretty
[wolnelektury.git] / wolnelektury / templates / catalogue / search_multiple_hits.html
index cc93d56..5d22251 100644 (file)
@@ -1,27 +1,23 @@
 {% extends "base.html" %}
-{% load catalogue_tags pagination_tags %}
+{% load i18n %}
+{% load search_tags pagination_tags %}
 
-{% block title %}Wyszukiwanie w WolneLektury.pl{% endblock %}
+{% block titleextra %}{% trans "Search" %}{% endblock %}
 
 {% block bodyid %}tagged-object-list{% endblock %}
 
 {% block body %}
-    <h1>{% title_from_tags tags %}</h1>
-    {% breadcrumbs tags %}
-    
-    <div id="books-list">
-        <p>Znaleziono więcej niż jeden wynik odpowiadający kryteriom wyszukiwania.</p>
-               <ul class='matches'>
-        {% for match, link, type in results %}
-            <li><a href='{{ link }}'>{{ match.name }}</a> ({{ type }})</li>
-        {% endfor %}
-               </ul>
-    </div>
+    {% if did_you_mean %}
+      <span class="did_you_mean">{% trans "Dod you mean" %} <a href="{% url search %}?q={{did_you_mean|urlencode}}">{{did_you_mean|lower}}</a></b>?</span>
+    {% endif %}
+    <!-- tu pójdą trafienia w tagi: Autorzy - z description oraz motywy i rodzaje (z book_count) -->
 
-    <div id="set-window">
-        <div class="header"><a href="#" class="jqmClose">Zamknij</a></div>
-        <div class="target">
-            <p><img src="{{ STATIC_URL }}img/indicator.gif" alt="*"/> Ładowanie</p>
-        </div>
+    <div id="results">
+      {% for result in results %}
+        {% book_searched result %}
+      {% endfor %}
     </div>
-{% endblock %}
\ No newline at end of file
+
+
+
+{% endblock %}