X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9362aac47564f9b03a3fcad625b312e85dfdf6db..ad9d29909733d402b8c197cb7c5d46afe887fa15:/wolnelektury/templates/newsearch/search.html?q=%7B%7Bdid_you_mean%7Curlencode%7D%7D diff --git a/wolnelektury/templates/newsearch/search.html b/wolnelektury/templates/newsearch/search.html index 4dfc8581f..c494ca602 100644 --- a/wolnelektury/templates/newsearch/search.html +++ b/wolnelektury/templates/newsearch/search.html @@ -10,27 +10,42 @@ {% block body %}

Search

-
+

- + +
+ fuzzy.

+ {% if did_you_mean %} + Czy miałeś na mysli {{did_you_mean}}? + {% endif %} +
    {% for result in results %}
  1. -

    {{result.book.pretty_title}} (id: {{result.book.id}}, score: {{result.score}})

    +

    {{result.book.pretty_title}} (id: {{result.book_id}}, score: {{result.score}})

      + {% for hit in result.hits %} +
    • + {% for snip in hit.3.snippets %} + {{snip|safe}}
      + {% endfor %} +
    • + {% endfor %} + {% for part in result.parts %} {% if part.header %}
    • W {{part.header}} nr {{part.position}}
    • {% else %} {% if part.fragment %}
    • -
      {% for tag in part.fragment.tags %}{{tag.name}} {% endfor %}
      - {{part.fragment.text|safe}}
    • +
      Tagi/Motywy: {% for tag in part.fragment.tags %}{{tag.name}} {% endfor %}
      + {{part.fragment.short_html|safe}} + {% endif %} {% endif %} {% endfor %}