diff options
author | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2015-02-08 21:53:37 +0100 |
---|---|---|
committer | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2015-02-08 21:53:37 +0100 |
commit | e7de9674b14c2ff06fac009274742819d6468138 (patch) | |
tree | 6a0de8ca26494c2cb6b9c5028ec2ad45cd1e20d9 /searx/templates | |
parent | dd4686a3886458f600427aba0ed7b9666b3644db (diff) | |
download | searxng-e7de9674b14c2ff06fac009274742819d6468138.tar.gz searxng-e7de9674b14c2ff06fac009274742819d6468138.zip |
[enh] add safesearch functionality
2 = strict
1 = moderate
0 = none
Diffstat (limited to 'searx/templates')
-rw-r--r-- | searx/templates/courgette/preferences.html | 10 | ||||
-rw-r--r-- | searx/templates/default/preferences.html | 10 | ||||
-rw-r--r-- | searx/templates/oscar/preferences.html | 11 |
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"> |