From 8d1d4819ae53ff33a258e12ab6a2dc5b58e88846 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Mon, 9 Mar 2015 00:32:23 +0100 Subject: [PATCH] [fix] whitespace remove and proper no-result warning display --- searx/templates/oscar/results.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/searx/templates/oscar/results.html b/searx/templates/oscar/results.html index a758256..1551945 100644 --- a/searx/templates/oscar/results.html +++ b/searx/templates/oscar/results.html @@ -25,8 +25,8 @@ {% endif %} {% endfor %} - - {% if not results %} + + {% if not results and not answers %} {% include 'oscar/messages/no_results.html' %} {% endif %} @@ -82,7 +82,7 @@ {% for infobox in infoboxes %} {% include 'oscar/infobox.html' %} {% endfor %} - {% endif %} + {% endif %} {% if suggestions %}
@@ -111,7 +111,7 @@
- +
{% for output_type in ('csv', 'json', 'rss') %} @@ -122,7 +122,7 @@ - {% endfor %} + {% endfor %}