logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git

categories.html (753B)


  1. <div id="categories">
  2. {% if rtl %}
  3. {% for category in categories | reverse %}
  4. <input class="hidden" type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} />
  5. <label for="checkbox_{{ category|replace(' ', '_') }}">{{ _(category) }}</label>
  6. {% endfor %}
  7. {% else %}
  8. {% for category in categories %}
  9. <input class="hidden" type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} />
  10. <label for="checkbox_{{ category|replace(' ', '_') }}">{{ _(category) }}</label>
  11. {% endfor %}
  12. {% endif %}
  13. </div>