summaryrefslogtreecommitdiff
path: root/searx/templates
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2014-02-07 00:35:15 +0100
committerasciimoo <asciimoo@gmail.com>2014-02-07 00:35:15 +0100
commitc0013edcdd998b49bdfce0b68ec38a0024347fd3 (patch)
treebfd43430068f93959bc17a4e5dd0dc8455537570 /searx/templates
parentb8d836e445484b6db4a2fd4c9102e0518889f220 (diff)
[enh] engine customisation init
Diffstat (limited to 'searx/templates')
-rw-r--r--searx/templates/engines.html27
-rw-r--r--searx/templates/preferences.html29
2 files changed, 29 insertions, 27 deletions
diff --git a/searx/templates/engines.html b/searx/templates/engines.html
deleted file mode 100644
index 613023a83..000000000
--- a/searx/templates/engines.html
+++ /dev/null
@@ -1,27 +0,0 @@
-{% extends 'base.html' %}
-{% block content %}
-<div class="row">
- <h2>{{ _('Currently used search engines') }}</h2>
-
- <table style="width: 80%;">
- <tr>
- <th>{{ _('Engine name') }}</th>
- <th>{{ _('Shortcut') }}</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>{{ shortcuts[search_engine.name] }}</td>
- <td>{{ _(categ) }}</td>
- </tr>
- {% endif %}
- {% endfor %}
- {% endfor %}
- </table>
-<p class="right"><a href="/">{{ _('back') }}</a></p>
-</div>
-{% endblock %}
diff --git a/searx/templates/preferences.html b/searx/templates/preferences.html
index 249cebe63..e5ef2718b 100644
--- a/searx/templates/preferences.html
+++ b/searx/templates/preferences.html
@@ -32,6 +32,35 @@
</select>
</p>
</fieldset>
+ <fieldset>
+ <legend>{{ _('Currently used search engines') }}</legend>
+
+ <table>
+ <tr>
+ <th>{{ _('Engine name') }}</th>
+ <th>{{ _('Shortcut') }}</th>
+ <th>{{ _('Category') }}</th>
+ <th>{{ _('Allow') }} / {{ _('Deny') }}</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>{{ shortcuts[search_engine.name] }}</td>
+ <td>{{ _(categ) }}</td>
+ <td class="engine_checkbox">
+ <input type="checkbox" id="engine_{{ categ}}_{{ search_engine.name|replace(' ', '_') }}" name="engine_{{ search_engine.name }}"{% if search_engine.name in blocked_engines %} checked="checked"{% endif %} />
+ <label class="allow" for="engine_{{ categ }}_{{ search_engine.name|replace(' ', '_') }}">{{ _('Allow') }}</label>
+ <label class="deny" for="engine_{{ categ }}_{{ search_engine.name|replace(' ', '_') }}">{{ _('Deny') }}</label>
+ </td>
+ </tr>
+ {% endif %}
+ {% endfor %}
+ {% endfor %}
+ </table>
+ </fieldset>
<p class="small_font">{{ _('These settings are stored in your cookies, this allows us not to store this data about you.') }}
<br />
{{ _("These cookies serve your sole convenience, we don't use these cookies to track you.") }}