From b91b77e335c0b0f2dca2b261c64414c96fdb2412 Mon Sep 17 00:00:00 2001 From: Thomas Pointhuber Date: Sat, 27 Sep 2014 14:44:34 +0200 Subject: oscar template: improve result page * add paging support * add suggestion panel * add links panel --- searx/templates/oscar/results.html | 80 +++++++++++++++++++++++++++++++++++--- 1 file changed, 75 insertions(+), 5 deletions(-) (limited to 'searx/templates') diff --git a/searx/templates/oscar/results.html b/searx/templates/oscar/results.html index fde65c883..f4364ed48 100644 --- a/searx/templates/oscar/results.html +++ b/searx/templates/oscar/results.html @@ -5,18 +5,88 @@

{{ _('Search results') }}

{% include 'oscar/search.html' %} - + {% for result in results %}
{% set index = loop.index %} {% if result.template %}{% include 'oscar/result_templates/'+result['template'] %}{% else %}{% include 'oscar/result_templates/default.html' %}{% endif %}
{% endfor %} - +
- -
+ + {% if paging %} + +
+ {% endif %} + + + + {% if suggestions %} +
+ +
+ {% for suggestion in suggestions %} + + {% endfor %} +
+
+ {% endif %} + +
+ +
+
+
+ + +
+
+ + +
+ {% for output_type in ('csv', 'json', 'rss') %} +
+ + + {% for category in selected_categories %}{% endfor %} + + +
+ {% endfor %} +
+
+
+ + {% endblock %} -- cgit v1.2.3