X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/cdf0ea700156d13cd27a670d9363d92ebaffa93f..756585089fb09cd0e25856b55510e69a52112e5f:/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..af36b5988 100644 --- a/wolnelektury/templates/newsearch/search.html +++ b/wolnelektury/templates/newsearch/search.html @@ -12,25 +12,36 @@

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 snippet in result.snippets %} +
    • {{snippet|safe}}
    • + {% 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 %}