From 053170628739dc63b87711dd79b580e3d41bebb0 Mon Sep 17 00:00:00 2001 From: asciimoo Date: Thu, 17 Oct 2013 01:53:52 +0200 Subject: [PATCH] [enh][mod] template refactor --- searx/templates/index.html | 10 +--------- searx/templates/results.html | 5 +---- searx/templates/search.html | 9 +++++++++ 3 files changed, 11 insertions(+), 13 deletions(-) create mode 100644 searx/templates/search.html diff --git a/searx/templates/index.html b/searx/templates/index.html index a25b84164..daff22b42 100644 --- a/searx/templates/index.html +++ b/searx/templates/index.html @@ -5,14 +5,6 @@

searx

-
- - -

- {% for engine in engines %} - {{ engine }}: - {% endfor %} -

-
+ {% include 'search.html' %}
{% endblock %} diff --git a/searx/templates/results.html b/searx/templates/results.html index 8d2683a74..c5eee4dd1 100644 --- a/searx/templates/results.html +++ b/searx/templates/results.html @@ -1,9 +1,6 @@ {% extends "base.html" %} {% block content %} -
- - -
+{% include 'search.html' %} {% for result in results %}

{{ result.title|safe }}

diff --git a/searx/templates/search.html b/searx/templates/search.html new file mode 100644 index 000000000..49331a141 --- /dev/null +++ b/searx/templates/search.html @@ -0,0 +1,9 @@ +
+ + +

+ {% for engine in engines %} + {{ engine }}: + {% endfor %} +

+