summaryrefslogtreecommitdiff
path: root/searx/templates/simple/elements/search_url.html
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2023-04-23 13:19:21 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2023-05-28 12:19:32 +0200
commitb7e315563d2401e6fb659fcfcb361e6d5bb915d5 (patch)
tree722dd54802c9533ce6ae13fb1b271bee67d45be6 /searx/templates/simple/elements/search_url.html
parent79c02456c1a852ecab5548a840d09e9642565615 (diff)
downloadsearxng-b7e315563d2401e6fb659fcfcb361e6d5bb915d5.tar.gz
searxng-b7e315563d2401e6fb659fcfcb361e6d5bb915d5.zip
[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>
Diffstat (limited to 'searx/templates/simple/elements/search_url.html')
-rw-r--r--searx/templates/simple/elements/search_url.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/searx/templates/simple/elements/search_url.html b/searx/templates/simple/elements/search_url.html
new file mode 100644
index 000000000..b3994fd94
--- /dev/null
+++ b/searx/templates/simple/elements/search_url.html
@@ -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 }}&amp;language={{ current_language }}&amp;time_range={{ time_range }}&amp;safesearch={{ safesearch }}
+ {%- if pageno > 1 -%}
+ &amp;pageno={{ pageno }}
+ {%- endif -%}
+ {%- if selected_categories -%}
+ &amp;categories={{ selected_categories|join(",") | replace(' ','+') }}
+ {%- endif -%}
+ {%- if timeout_limit -%}
+ &amp;timeout_limit={{ timeout_limit|urlencode }}
+ {%- endif -%}
+ </pre>
+ </div>
+ </details>
+</div>