diff options
| author | asciimoo <asciimoo@gmail.com> | 2014-01-31 16:09:58 +0100 |
|---|---|---|
| committer | asciimoo <asciimoo@gmail.com> | 2014-01-31 16:09:58 +0100 |
| commit | 48dc019b94cd171cb69cd8d4cd4ac89d18900ec4 (patch) | |
| tree | dc87bcc30347457fd92ed1b6f287b644aedd99f3 | |
| parent | af6e90009f3203dd7c4ce2ae7e4c789262ba1fa4 (diff) | |
[enh] displaying shortcuts at engines page
| -rw-r--r-- | searx/templates/engines.html | 2 | ||||
| -rw-r--r-- | searx/webapp.py | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/searx/templates/engines.html b/searx/templates/engines.html index 8a7aaf4a0..613023a83 100644 --- a/searx/templates/engines.html +++ b/searx/templates/engines.html @@ -6,6 +6,7 @@ <table style="width: 80%;"> <tr> <th>{{ _('Engine name') }}</th> + <th>{{ _('Shortcut') }}</th> <th>{{ _('Category') }}</th> </tr> {% for (categ,search_engines) in categs %} @@ -14,6 +15,7 @@ {% if not search_engine.private %} <tr> <td>{{ search_engine.name }}</td> + <td>{{ shortcuts[search_engine.name] }}</td> <td>{{ _(categ) }}</td> </tr> {% endif %} diff --git a/searx/webapp.py b/searx/webapp.py index 49580911d..347ee969d 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -250,8 +250,9 @@ def list_engines(): List of all supported engines. """ - global categories - return render('engines.html', categs=categories.items()) + return render('engines.html', + categs=categories.items(), + shortcuts={y:x for x,y in engine_shortcuts.items()}) @app.route('/preferences', methods=['GET', 'POST']) |