searxng/searx/templates/oscar/categories.html
Martin Fischer 695e5d0005 [fix 3/3] actually only hide them for tabs
The categories.html template is used in three places:

1) for the tabs on the result page
2) for the default category selection in the preferences
3) for the advanced search category selection in the oscar theme

The search_on_category_select plugin only makes the checkboxes in 1)
behave like tabs. The previous commit however hides the checkboxes
in all three places when the plugin is loaded, which we don't want:
The categories in 2) and 3) always act like checkboxes, so the
checkboxes in these places should actually always be visible.
2022-01-07 11:33:01 +01:00

8 lines
485 B
HTML

<div id="categories" class="{{categories_class}}">
{% for category in ((categories_as_tabs | reverse) if rtl else categories_as_tabs) -%}
<div class="category">
<input type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} />{{- '' -}}
<label for="checkbox_{{ category|replace(' ', '_') }}">{{ _(category) }}</label>
</div>
{%- endfor %}
</div>