forked from Icycoide/searxng
[fix] do not hide categorie inside preferences if there is no engine activated
This commit is contained in:
parent
aa1b8fa79b
commit
0978f10887
4 changed files with 12 additions and 4 deletions
|
@ -101,7 +101,7 @@
|
|||
<th>{{ _('Category') }}</th>
|
||||
<th>{{ _('Allow') }} / {{ _('Block') }}</th>
|
||||
</tr>
|
||||
{% for categ in categories %}
|
||||
{% for categ in all_categories %}
|
||||
{% for search_engine in engines_by_category[categ] %}
|
||||
|
||||
{% if not search_engine.private %}
|
||||
|
|
|
@ -89,7 +89,7 @@
|
|||
<th>{{ _('Category') }}</th>
|
||||
<th>{{ _('Allow') }} / {{ _('Block') }}</th>
|
||||
</tr>
|
||||
{% for categ in categories %}
|
||||
{% for categ in all_categories %}
|
||||
{% for search_engine in engines_by_category[categ] %}
|
||||
|
||||
{% if not search_engine.private %}
|
||||
|
|
|
@ -117,7 +117,7 @@
|
|||
|
||||
<!-- Nav tabs -->
|
||||
<ul class="nav nav-tabs nav-justified hide_if_nojs" role="tablist" style="margin-bottom:20px;">
|
||||
{% for categ in categories %}
|
||||
{% for categ in all_categories %}
|
||||
<li{% if loop.first %} class="active"{% endif %}><a href="#tab_engine_{{ categ|replace(' ', '_') }}" role="tab" data-toggle="tab">{{ _(categ) }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
@ -128,7 +128,7 @@
|
|||
|
||||
<!-- Tab panes -->
|
||||
<div class="tab-content">
|
||||
{% for categ in categories %}
|
||||
{% for categ in all_categories %}
|
||||
<noscript><label>{{ _(categ) }}</label>
|
||||
</noscript>
|
||||
<div class="tab-pane{% if loop.first %} active{% endif %} active_if_nojs" id="tab_engine_{{ categ|replace(' ', '_') }}">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue