logo

searx

My custom branche(s) on searx, a meta-search engine
commit: 8b3ca1112c77ab7d131c075530f0dc02c6029e7d
parent: d6c8987575d94b56b6b877e552de99fa0c62ba98
Author: asciimoo <asciimoo@gmail.com>
Date:   Fri, 17 Jan 2014 16:23:23 +0100

[enh] /engines page added

Diffstat:

Asearx/templates/engines.html26++++++++++++++++++++++++++
Msearx/webapp.py7++++++-
2 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/searx/templates/engines.html 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 @@ -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'])