forked from Ponysearch/Ponysearch
b7e315563d
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>
18 lines
762 B
HTML
18 lines
762 B
HTML
<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>
|