From 8b3ca1112c77ab7d131c075530f0dc02c6029e7d Mon Sep 17 00:00:00 2001 From: asciimoo Date: Fri, 17 Jan 2014 16:23:23 +0100 Subject: [PATCH] [enh] /engines page added --- searx/templates/engines.html | 26 ++++++++++++++++++++++++++ searx/webapp.py | 7 ++++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 searx/templates/engines.html diff --git a/searx/templates/engines.html b/searx/templates/engines.html new file mode 100644 index 00000000..1f52dc09 --- /dev/null +++ b/searx/templates/engines.html @@ -0,0 +1,26 @@ +{% extends 'base.html' %} +{% block content %} +
+

Currently used search engines

+ + + + + + + {% for (categ,search_engines) in categs %} + {% for search_engine in search_engines %} + + {% if not search_engine.private %} + + + + + {% endif %} + {% endfor %} + {% endfor %} +
Engine nameCategory
{{ search_engine.name }}{{ categ }}
+

Please add more engines to this list, pull requests are welcome!

+

back

+
+{% endblock %} diff --git a/searx/webapp.py b/searx/webapp.py index 48448eb2..d6ec3a47 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -174,8 +174,13 @@ def index(): @app.route('/about', methods=['GET']) def about(): + return render('about.html') + + +@app.route('/engines', methods=['GET']) +def list_engines(): global categories - return render('about.html', categs=categories.items()) + return render('engines.html', categs=categories.items()) @app.route('/preferences', methods=['GET', 'POST'])