logo

searx

Unnamed repository; edit this file 'description' to name the repository.
commit: 752c6a28dad5d1abce54e083015669b5ca0a682e
parent: 7e5b72bc5dad6ec5e9aa3fbc3610ac5e6e59bd40
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 27 Aug 2017 20:51:01 +0200

searx/templates/simple/search.html: Reuse lines used in preferences.html for safesearch

Diffstat:

searx/templates/simple/search.html | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/searx/templates/simple/search.html b/searx/templates/simple/search.html @@ -2,9 +2,9 @@ <div class="search_box"> <input autofocus id="q" name="q" type="text" placeholder="{{ _('Search for...') }}" dir="auto" {% if q %}value="{{ q }}"{% endif %} > <select id="safesearch" name="safesearch"> - <option value="0">None</option> - <option value="1">Moderate</option> - <option value="2">Strict</option> + <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> <button id="send_search" type="submit">🔍</button> </div>