mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
[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).
This commit is contained in:
parent
4ac6b5d32d
commit
ab90e2ac49
4 changed files with 13 additions and 4 deletions
|
|
@ -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(' ', '_') }}">
|
||||
|
|
|
|||
|
|
@ -274,7 +274,7 @@
|
|||
{{ tab_header('maintab', 'engines', _('Engines')) }}
|
||||
<p>{{ _('Currently used search engines') }}</p>
|
||||
{{ tabs_open() }}
|
||||
{% for categ in categories_as_tabs %}
|
||||
{% for categ in categories_as_tabs + [OTHER_CATEGORY] %}
|
||||
{{ tab_header('enginetab', 'category' + categ, _(categ)) }}
|
||||
<div class="scrollx">
|
||||
<table class="striped">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue