summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2014-01-17 16:23:23 +0100
committerasciimoo <asciimoo@gmail.com>2014-01-17 16:23:23 +0100
commit8b3ca1112c77ab7d131c075530f0dc02c6029e7d (patch)
tree2bb413898a5105893aaadb9f2c9730a3c31b2d02 /searx
parentd6c8987575d94b56b6b877e552de99fa0c62ba98 (diff)
downloadsearxng-8b3ca1112c77ab7d131c075530f0dc02c6029e7d.tar.gz
searxng-8b3ca1112c77ab7d131c075530f0dc02c6029e7d.zip
[enh] /engines page added
Diffstat (limited to 'searx')
-rw-r--r--searx/templates/engines.html26
-rw-r--r--searx/webapp.py7
2 files changed, 32 insertions, 1 deletions
diff --git a/searx/templates/engines.html b/searx/templates/engines.html
new file mode 100644
index 000000000..1f52dc09f
--- /dev/null
+++ b/searx/templates/engines.html
@@ -0,0 +1,26 @@
+{% extends 'base.html' %}
+{% block content %}
+<div class="row">
+<h2>Currently used search engines</h2>
+
+ <table style="width: 80%;">
+ <tr>
+ <th>Engine name</th>
+ <th>Category</th>
+ </tr>
+ {% for (categ,search_engines) in categs %}
+ {% for search_engine in search_engines %}
+
+ {% if not search_engine.private %}
+ <tr>
+ <td>{{ search_engine.name }}</td>
+ <td>{{ categ }}</td>
+ </tr>
+ {% endif %}
+ {% endfor %}
+ {% endfor %}
+ </table>
+<p>Please add more engines to this list, pull requests are welcome!</p>
+<p class="right"><a href="/">back</a></p>
+</div>
+{% endblock %}
diff --git a/searx/webapp.py b/searx/webapp.py
index 48448eb25..d6ec3a47b 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'])