diff options
author | Markus Heiser <markus.heiser@darmarIT.de> | 2019-12-24 17:45:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-24 17:45:13 +0100 |
commit | ecb054a7a058a1f62a536e5cac88eed8926b107d (patch) | |
tree | 925594876f18580732d2c8a438ff8f3bea8d9092 /searx/templates/oscar/categories.html | |
parent | cc8d4b958e274eb9e154db5c319d2e50da561d61 (diff) | |
parent | 5a0a66e9bc34af2b6404231efc7cf02f389bdfcb (diff) | |
download | searxng-ecb054a7a058a1f62a536e5cac88eed8926b107d.tar.gz searxng-ecb054a7a058a1f62a536e5cac88eed8926b107d.zip |
Merge branch 'master' into patch-1
Diffstat (limited to 'searx/templates/oscar/categories.html')
-rw-r--r-- | searx/templates/oscar/categories.html | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/searx/templates/oscar/categories.html b/searx/templates/oscar/categories.html index 1ace10f16..a5c5f61c7 100644 --- a/searx/templates/oscar/categories.html +++ b/searx/templates/oscar/categories.html @@ -1,13 +1,13 @@ <div id="categories"> -{% if rtl %} - {% for category in categories | reverse %} - <input class="hidden" type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} /> +{%- if rtl -%} + {% for category in categories | reverse -%} + <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> - {% endfor %} -{% else %} - {% for category in categories %} - <input class="hidden" type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} /> + {%- endfor %} +{%- else -%} + {% for category in categories -%} + <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> - {% endfor %} -{% endif %} + {%- endfor %} +{%- endif -%} </div> |