summaryrefslogtreecommitdiff
path: root/searx/templates/simple/categories.html
blob: 71fdca90a18a1be1df7317ad6c0cd1b611d18494 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{% from 'simple/icons.html' import icon_big %}
{%- set category_icons = {
    'general': 'search-outline',
    'images': 'image-outline',
    'videos': 'play-outline',
    'news': 'newspaper-outline',
    'map': 'location-outline',
    'music': 'musical-notes-outline',
    'it': 'layers-outline',
    'science': 'school-outline',
    'files': 'file-tray-full-outline',
    'social media': 'people-outline',
}  -%}  
<div id="categories" class="search_categories">{{- '' -}}
    <div id="categories_container">
        {%- for category in categories -%}
        <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(' ', '_') }}" class="tooltips">
                {{- icon_big(category_icons[category]) if category in category_icons  else icon_big('globe-outline') -}}
                <div class="category_name">{{- _(category) -}}</div>
            </label>
        </div>
        {%- endfor -%}
        {%- if display_tooltip %}<div class="help">{{ _('Click on the magnifier to perform search') }}</div>{% endif -%}
    </div>{{- '' -}}
</div>