summaryrefslogtreecommitdiff
path: root/searx/templates/oscar/preferences.html
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-12-28 16:12:54 +0100
committerMartin Fischer <martin@push-f.com>2022-01-05 11:03:44 +0100
commitab90e2ac49778153409397d4a2c34e9051963a0f (patch)
tree811c93fa0466b0e3796a5032a5bdfea8a665b285 /searx/templates/oscar/preferences.html
parent4ac6b5d32dc60ce410eb7166722c86e82f8c937c (diff)
downloadsearxng-ab90e2ac49778153409397d4a2c34e9051963a0f.tar.gz
searxng-ab90e2ac49778153409397d4a2c34e9051963a0f.zip
[enh] show categories not in any tab category in "Other" preferences tab
Previously we didn't have a good place to put search engines that don't fit into any of the tab categories. This commit automatically puts search engines that don't belong to any tab category in an "other" category, that is only displayed in the user preferences (and not above search results).
Diffstat (limited to 'searx/templates/oscar/preferences.html')
-rw-r--r--searx/templates/oscar/preferences.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html
index 810e6f072..341c203b0 100644
--- a/searx/templates/oscar/preferences.html
+++ b/searx/templates/oscar/preferences.html
@@ -298,7 +298,7 @@
<div class="tab-pane active_if_nojs" id="tab_engine">
<!-- Nav tabs -->
<ul class="nav nav-tabs nav-justified hide_if_nojs" role="tablist">
- {% for categ in categories_as_tabs %}
+ {% for categ in categories_as_tabs + [OTHER_CATEGORY] %}
<li{% if loop.first %} class="active"{% endif %}><a href="#tab_engine_{{ categ|replace(' ', '_') }}" role="tab" data-toggle="tab">{{ _(categ) }}</a></li>
{% endfor %}
</ul>
@@ -317,7 +317,7 @@
</p>
</div>
- {% for categ in categories_as_tabs %}
+ {% for categ in categories_as_tabs + [OTHER_CATEGORY] %}
<noscript><label>{{ _(categ) }}</label>
</noscript>
<div class="tab-pane{% if loop.first %} active{% endif %} active_if_nojs" id="tab_engine_{{ categ|replace(' ', '_') }}">