summaryrefslogtreecommitdiff
path: root/searx/templates/simple/preferences.html
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2022-03-19 19:55:54 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2022-03-19 19:55:54 +0100
commit076c6889d3b6ac3671bca16bb251f9f31c7191b6 (patch)
tree7c9061861841f91816733e0d50e549e1538515d9 /searx/templates/simple/preferences.html
parentc3c2a623fe054ee38a251a0bd5ac0c82efbc469a (diff)
[fix] simple theme: open preferences with general tab
BTW: fix also the category tab to open with category 'general' Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/templates/simple/preferences.html')
-rw-r--r--searx/templates/simple/preferences.html10
1 files changed, 6 insertions, 4 deletions
diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html
index 84e1d6e77..2ef83757b 100644
--- a/searx/templates/simple/preferences.html
+++ b/searx/templates/simple/preferences.html
@@ -102,7 +102,7 @@
{{ tabs_open() }}
- {{ tab_header('maintab', 'general', _('General')) }}
+ {{ tab_header('maintab', 'general', _('General'), True) }}
{% if 'categories' not in locked_preferences %}
<fieldset>
<legend>{{ _('Default categories') }}</legend>
@@ -284,9 +284,11 @@
{{ tab_header('maintab', 'engines', _('Engines')) }}
<p>{{ _('Currently used search engines') }}</p>
{{ tabs_open() }}
- {% for categ in categories_as_tabs + [OTHER_CATEGORY] %}
- {{ tab_header('enginetab', 'category' + categ, _(categ)) }}
- {% if categ == OTHER_CATEGORY %}
+ {% set ns = namespace(checked=true) %}
+ {% for categ in categories_as_tabs + [OTHER_CATEGORY] %}
+ {{ tab_header('enginetab', 'category' + categ, _(categ), ns.checked )}}
+ {% set ns.checked = false %}
+ {% if categ == OTHER_CATEGORY %}
<p>{{_('This tab does not show up for search results, but you can search the engines listed here via bangs.')}}</p>
{% endif %}
<div class="scrollx">