[mod] simple theme: collaps/expand elements in the sidebar
Make elements in the sidebar collapse able. Except infoboxes all elements in the sidebar are collapsed by default. By folding out the sidebar elements, the UI looks less cluttered. Especially on small devices like smartphones, where the sidebar is above the results list, the UX should be improved [1]. [1] https://github.com/searxng/searxng/issues/2140 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
committed by
Markus Heiser
parent
79c02456c1
commit
b7e315563d
18
searx/templates/simple/elements/search_url.html
Normal file
18
searx/templates/simple/elements/search_url.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<div id="search_url" role="complementary" aria-labelledby="search_url-title">
|
||||
<details>
|
||||
<summary class="title" id="search_url-title">{{ _('Search URL') }}</summary>
|
||||
<div class="selectable_url">
|
||||
<pre>{{ url_for('search', _external=True) }}?q={{ q|urlencode }}&language={{ current_language }}&time_range={{ time_range }}&safesearch={{ safesearch }}
|
||||
{%- if pageno > 1 -%}
|
||||
&pageno={{ pageno }}
|
||||
{%- endif -%}
|
||||
{%- if selected_categories -%}
|
||||
&categories={{ selected_categories|join(",") | replace(' ','+') }}
|
||||
{%- endif -%}
|
||||
{%- if timeout_limit -%}
|
||||
&timeout_limit={{ timeout_limit|urlencode }}
|
||||
{%- endif -%}
|
||||
</pre>
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
Reference in New Issue
Block a user