logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git
commit: 8d1d4819ae53ff33a258e12ab6a2dc5b58e88846
parent d1b12f9016492143a4b3750c9fba89a7168fa179
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Mon,  9 Mar 2015 00:32:23 +0100

[fix] whitespace remove and proper no-result warning display

Diffstat:

Msearx/templates/oscar/results.html10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/searx/templates/oscar/results.html b/searx/templates/oscar/results.html @@ -25,8 +25,8 @@ {% endif %} </div> {% 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 %} <div class="panel panel-default"> @@ -111,7 +111,7 @@ <input id="search_url" type="url" class="form-control select-all-on-click cursor-text" name="search_url" value="{{ base_url }}?q={{ q|urlencode }}&amp;pageno={{ pageno }}{% if selected_categories %}&amp;category_{{ selected_categories|join("&category_")|replace(' ','+') }}{% endif %}" readonly> </div> </form> - + <label>{{ _('Download results') }}</label> <div class="clearfix"></div> {% for output_type in ('csv', 'json', 'rss') %} @@ -122,7 +122,7 @@ <input type="hidden" name="pageno" value="{{ pageno }}"> <button type="submit" class="btn btn-default">{{ output_type }}</button> </form> - {% endfor %} + {% endfor %} <div class="clearfix"></div> </div> </div>