summaryrefslogtreecommitdiff
path: root/searx/templates
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2015-02-09 10:47:40 +0100
committerAdam Tauber <asciimoo@gmail.com>2015-02-09 10:47:40 +0100
commit67df3c516fc380d000f32d43ecb90c0fc32ca46a (patch)
tree0eb983532ab1542a9c0e1efd681604aa7346cd33 /searx/templates
parent5f801d7ea0ee1e4b4bec7f52c45ca3f601fc5cdc (diff)
parent7ac6361b51199ce8b208dcd6e8ba62ec4f652186 (diff)
Merge pull request #220 from pointhi/safesearch
Safesearch
Diffstat (limited to 'searx/templates')
-rw-r--r--searx/templates/courgette/preferences.html10
-rw-r--r--searx/templates/default/preferences.html10
-rw-r--r--searx/templates/oscar/preferences.html11
3 files changed, 31 insertions, 0 deletions
diff --git a/searx/templates/courgette/preferences.html b/searx/templates/courgette/preferences.html
index 198bc7ead..18406672c 100644
--- a/searx/templates/courgette/preferences.html
+++ b/searx/templates/courgette/preferences.html
@@ -60,6 +60,16 @@
</p>
</fieldset>
<fieldset>
+ <legend>{{ _('SafeSearch') }}</legend>
+ <p>
+ <select name='safesearch'>
+ <option value="2" {% if safesearch == '2' %}selected="selected"{% endif %}>{{ _('Strict') }}</option>
+ <option value="1" {% if safesearch == '1' %}selected="selected"{% endif %}>{{ _('Moderate') }}</option>
+ <option value="0" {% if safesearch == '0' %}selected="selected"{% endif %}>{{ _('None') }}</option>
+ </select>
+ </p>
+ </fieldset>
+ <fieldset>
<legend>{{ _('Themes') }}</legend>
<p>
<select name="theme">
diff --git a/searx/templates/default/preferences.html b/searx/templates/default/preferences.html
index 112849c3d..8ac6a895c 100644
--- a/searx/templates/default/preferences.html
+++ b/searx/templates/default/preferences.html
@@ -61,6 +61,16 @@
</p>
</fieldset>
<fieldset>
+ <legend>{{ _('SafeSearch') }}</legend>
+ <p>
+ <select name='safesearch'>
+ <option value="2" {% if safesearch == '2' %}selected="selected"{% endif %}>{{ _('Strict') }}</option>
+ <option value="1" {% if safesearch == '1' %}selected="selected"{% endif %}>{{ _('Moderate') }}</option>
+ <option value="0" {% if safesearch == '0' %}selected="selected"{% endif %}>{{ _('None') }}</option>
+ </select>
+ </p>
+ </fieldset>
+ <fieldset>
<legend>{{ _('Themes') }}</legend>
<p>
<select name="theme">
diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html
index 41656463c..ecb483ebb 100644
--- a/searx/templates/oscar/preferences.html
+++ b/searx/templates/oscar/preferences.html
@@ -88,6 +88,17 @@
<span class="col-sm-5 col-md-6 help-block">{{ _('Change how forms are submited, <a href="http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods" rel="external">learn more about request methods</a>') }}</span>
</div>
<div class="row form-group">
+ <label class="col-sm-3 col-md-2">{{ _('SafeSearch') }}</label>
+ <div class="col-sm-4 col-md-4">
+ <select class="form-control" name='safesearch'>
+ <option value="2" {% if safesearch == '2' %}selected="selected"{% endif %}>{{ _('Strict') }}</option>
+ <option value="1" {% if safesearch == '1' %}selected="selected"{% endif %}>{{ _('Moderate') }}</option>
+ <option value="0" {% if safesearch == '0' %}selected="selected"{% endif %}>{{ _('None') }}</option>
+ </select>
+ </div>
+ <span class="col-sm-5 col-md-6 help-block">{{ _('Filter explicite content') }}</span>
+ </div>
+ <div class="row form-group">
<label class="col-sm-3 col-md-2">{{ _('Themes') }}</label>
<div class="col-sm-4 col-md-4">
<select class="form-control" name="theme">