forked from Ponysearch/Ponysearch
f3aff26086
* rework selection UI in pref (fix based on: 78643e9f43
)
* moved search filters underneath categories
* cut params from url and replace / with ›
* make h3 and url in article bigger
* add safe search select to search filter (this will not override settings and only be valid while on result page in a session)
* make search form button not overlap each other when js is disabled
* 1rem padding around preview image and thumbnail in default article template
26 lines
1.2 KiB
HTML
26 lines
1.2 KiB
HTML
{% 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">
|
|
{%- if display_tooltip %}<div class="help">{{ _('Click on the magnifier to perform search') }}</div>{% endif -%}
|
|
{%- 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 -%}
|
|
</div>{{- '' -}}
|
|
</div>
|