X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/4cbcf8cac5e8cad592d9d84d76408249ccca8112..801a05d2ff33bb8a3c1a46ea0c657825b2787fa7:/src/search/templates/search/results.html
diff --git a/src/search/templates/search/results.html b/src/search/templates/search/results.html
index c6ea3836d..189d095e2 100644
--- a/src/search/templates/search/results.html
+++ b/src/search/templates/search/results.html
@@ -35,6 +35,12 @@
+ {% if not hasresults %}
+
+ Brak wyników.
+
+ {% endif %}
+
{% if results.author %}
@@ -101,20 +107,22 @@
{% endif %}
- {% if results.fragment or results.snippet %}
+ {% if results.snippet %}
- {% for f in results.snippet %}
+ {% for book, snippets in results.snippet.items %}
{% endfor %}
@@ -132,7 +140,7 @@
{% endif %}
- {% if pd_authors %}
+ {% if results.pdauthor or results.pdbook %}
Domena publiczna?
@@ -142,10 +150,32 @@
Dowiedz siÄ, dlaczego biblioteki internetowe nie mogÄ
udostÄpniaÄ dzieÅ tego autora.
- {% for tag in pd_authors %}
+ {% for tag in results.pdauthor %}
+ {% endfor %}
+ {% for book in results.pdbook %}
+
{% endfor %}