searx/searx/templates/oscar/categories.html

18 lines
817 B
HTML
Raw Permalink Normal View History

<div id="categories">
2019-08-06 11:41:16 +02:00
{%- if rtl -%}
{% for category in categories | reverse -%}
<a>
2019-08-06 11:41:16 +02:00
<input class="hidden" type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} />{{- '' -}}
<label for="checkbox_{{ category|replace(' ', '_') }}">{{ _(category) }}</label>
</a>
2019-08-06 11:41:16 +02:00
{%- endfor %}
{%- else -%}
{% for category in categories -%}
<a>
2019-08-06 11:41:16 +02:00
<input class="hidden" type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} />{{- '' -}}
<label for="checkbox_{{ category|replace(' ', '_') }}">{{ _(category) }}</label>
</a>
2019-08-06 11:41:16 +02:00
{%- endfor %}
{%- endif -%}
</div>