summaryrefslogtreecommitdiff
path: root/searx/templates
diff options
context:
space:
mode:
authorrenyhp <renyhp@disroot.org>2020-11-22 18:00:21 +0100
committerrenyhp <renyhp@disroot.org>2020-11-22 18:16:43 +0100
commitb00f77059c93bc91f706b5f0c51f7db752669b09 (patch)
tree06fbc91fdd4ef0e1fd23ce1286815c45b5c0a16c /searx/templates
parent2fc3b17c85512280173bb47f449cc2faa64b0501 (diff)
downloadsearxng-b00f77059c93bc91f706b5f0c51f7db752669b09.tar.gz
searxng-b00f77059c93bc91f706b5f0c51f7db752669b09.zip
Add preference for displaying advanced settings
Diffstat (limited to 'searx/templates')
-rw-r--r--searx/templates/oscar/preferences.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html
index b596f66d8..bc688dade 100644
--- a/searx/templates/oscar/preferences.html
+++ b/searx/templates/oscar/preferences.html
@@ -140,6 +140,15 @@
{{ preferences_item_footer(info, label, rtl) }}
{% endif %}
+ {% set label = _('Show advanced settings') %}
+ {% set info = _('Show advanced settings panel in the home page by default') %}
+ {{ preferences_item_header(info, label, rtl, 'advanced_search') }}
+ <select class="form-control {{ custom_select_class(rtl) }}" name="advanced_search" id="advanced_search">
+ <option value="1" {% if preferences.get_value('advanced_search')%}selected="selected"{% endif %}>{{ _('On') }}</option>
+ <option value="0" {% if not preferences.get_value('advanced_search')%}selected="selected"{% endif %}>{{ _('Off')}}</option>
+ </select>
+ {{ preferences_item_footer(info, label, rtl) }}
+
{% if 'doi_resolver' not in locked_preferences %}
{% set label = _('Open Access DOI resolver') %}
{% set info = _('Redirect to open-access versions of publications when available (plugin required)') %}