search - did you mean?
[wolnelektury.git] / wolnelektury / templates / catalogue / search_multiple_hits.html
index 0d3e700..7a3e580 100644 (file)
@@ -9,6 +9,9 @@
 {% block body %}
     <h1>{% trans "Search" %}</h1>
 
+    {% 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 %}
     <div id="results">
       <ol>
       {% for result in results %}
@@ -31,6 +34,7 @@
            
            {% else %}
            {# it's a section #}
+           <a href="{% url book_text result.book.slug %}#f{{hit.section_number}}">{{hit.header_index}}</a>
             {% if hit.snippets %}
              {% for snip in hit.snippets %}
                {{snip|safe}}<br/>