From d24bcbb6f0c4d462df7930d401af68d119e815f3 Mon Sep 17 00:00:00 2001 From: MrPaulBlack Date: Fri, 24 Sep 2021 16:21:43 +0200 Subject: [PATCH] [preferences] reorder tabs in simple to match oscar theme --- searx/templates/simple/preferences.html | 186 ++++++++++++------------ 1 file changed, 93 insertions(+), 93 deletions(-) diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html index 6699a30a4..17a22b00e 100644 --- a/searx/templates/simple/preferences.html +++ b/searx/templates/simple/preferences.html @@ -169,47 +169,6 @@ {% endif %} {{ tab_footer() }} - {{ tab_header('maintab', 'engines', _('Engines')) }} -

{{ _('Currently used search engines') }}

- {{ tabs_open() }} - {% for categ in all_categories %} - {{ tab_header('enginetab', 'category' + categ, _(categ)) }} -
- - - - - - - - - - - - - {% for search_engine in engines_by_category[categ] %} - {% if not search_engine.private %} - {% set engine_id = 'engine_' + search_engine.name|replace(' ', '_') + '__' + categ|replace(' ', '_') %} - - - - - - - - {{ engine_time(search_engine.name) }} - - {{ engine_reliability(search_engine.name) }} - - {% endif %} - {% endfor %} -
{{ _("Allow") }}{{ _("Engine name") }}{{ _("Shortcut") }}{{ _("Supports selected language") }}{{ _("SafeSearch") }}{{ _("Time range") }}{{ _("Response time") }}{{ _("Max time") }}{{ _("Reliablity") }}
{{ checkbox_onoff(engine_id, (search_engine.name, categ) in disabled_engines) }}{% if search_engine.enable_http %}{{ icon('warning', 'No HTTPS') }}{% endif %} {{ search_engine.name }} {{ engine_about(search_engine) }}{{ shortcuts[search_engine.name] }}{{ checkbox(engine_id + '_supported_languages', supports[search_engine.name]['supports_selected_language'], true, true) }}{{ checkbox(engine_id + '_safesearch', supports[search_engine.name]['safesearch'], true, true) }}{{ checkbox(engine_id + '_time_range_support', supports[search_engine.name]['time_range_support'], true, true) }}{{ search_engine.timeout }}
-
- {{ tab_footer() }} - {% endfor %} - {{ tabs_close() }} - {{ tab_footer() }} - {{ tab_header('maintab', 'ui', _('User interface')) }} {% if 'locale' not in locked_preferences %}
@@ -252,32 +211,73 @@ {{ plugin_preferences('ui') }} {{ tab_footer() }} - {{ tab_header('maintab', 'cookies', _('Cookies')) }} -

- {{ _('This is the list of cookies and their values searx is storing on your computer.') }}
- {{ _('With that list, you can assess searx transparency.') }}
-

- {% if cookies %} - - - - - - {% for cookie in cookies %} - - - - - {% endfor %} -
{{ _('Cookie name') }}{{ _('Value') }}
{{ cookie }}{{ cookies[cookie] }}
- {% else %} - {% include 'oscar/messages/no_cookies.html' %} - {% endif %} -

{{ _('Search URL of the currently saved preferences') }} :

-
-
{{ url_for('index', _external=True) }}?preferences={{ preferences_url_params|e }}{% raw %}&q=%s{% endraw %}
-
-

{{ _('Note: specifying custom settings in the search URL can reduce privacy by leaking data to the clicked result sites.') }}

+ {{ tab_header('maintab', 'privacy', _('Privacy')) }} + {% if 'method' not in locked_preferences %} +
+ {{ _('Method') }} +

+ +

+
{{ _('Search language') }}
+
+ {% endif %} + {% if 'image_proxy' not in locked_preferences %} +
+ {{ _('Image proxy') }} +

+ +

+
{{ _('Proxying image results through searx') }}
+
+ {% endif %} + {{ plugin_preferences('privacy') }} + {{ tab_footer() }} + + {{ tab_header('maintab', 'engines', _('Engines')) }} +

{{ _('Currently used search engines') }}

+ {{ tabs_open() }} + {% for categ in all_categories %} + {{ tab_header('enginetab', 'category' + categ, _(categ)) }} +
+ + + + + + + + + + + + + {% for search_engine in engines_by_category[categ] %} + {% if not search_engine.private %} + {% set engine_id = 'engine_' + search_engine.name|replace(' ', '_') + '__' + categ|replace(' ', '_') %} + + + + + + + + {{ engine_time(search_engine.name) }} + + {{ engine_reliability(search_engine.name) }} + + {% endif %} + {% endfor %} +
{{ _("Allow") }}{{ _("Engine name") }}{{ _("Shortcut") }}{{ _("Supports selected language") }}{{ _("SafeSearch") }}{{ _("Time range") }}{{ _("Response time") }}{{ _("Max time") }}{{ _("Reliablity") }}
{{ checkbox_onoff(engine_id, (search_engine.name, categ) in disabled_engines) }}{% if search_engine.enable_http %}{{ icon('warning', 'No HTTPS') }}{% endif %} {{ search_engine.name }} {{ engine_about(search_engine) }}{{ shortcuts[search_engine.name] }}{{ checkbox(engine_id + '_supported_languages', supports[search_engine.name]['supports_selected_language'], true, true) }}{{ checkbox(engine_id + '_safesearch', supports[search_engine.name]['safesearch'], true, true) }}{{ checkbox(engine_id + '_time_range_support', supports[search_engine.name]['time_range_support'], true, true) }}{{ search_engine.timeout }}
+
+ {{ tab_footer() }} + {% endfor %} + {{ tabs_close() }} {{ tab_footer() }} {{ tab_header('maintab', 'query', _('Special Queries')) }} @@ -320,32 +320,32 @@ {% endif %} {{ tab_footer() }} - {{ tab_header('maintab', 'privacy', _('Privacy')) }} - {% if 'method' not in locked_preferences %} -
- {{ _('Method') }} -

- -

-
{{ _('Search language') }}
-
- {% endif %} - {% if 'image_proxy' not in locked_preferences %} -
- {{ _('Image proxy') }} -

- -

-
{{ _('Proxying image results through searx') }}
-
- {% endif %} - {{ plugin_preferences('privacy') }} + {{ tab_header('maintab', 'cookies', _('Cookies')) }} +

+ {{ _('This is the list of cookies and their values searx is storing on your computer.') }}
+ {{ _('With that list, you can assess searx transparency.') }}
+

+ {% if cookies %} + + + + + + {% for cookie in cookies %} + + + + + {% endfor %} +
{{ _('Cookie name') }}{{ _('Value') }}
{{ cookie }}{{ cookies[cookie] }}
+ {% else %} + {% include 'oscar/messages/no_cookies.html' %} + {% endif %} +

{{ _('Search URL of the currently saved preferences') }} :

+
+
{{ url_for('index', _external=True) }}?preferences={{ preferences_url_params|e }}{% raw %}&q=%s{% endraw %}
+
+

{{ _('Note: specifying custom settings in the search URL can reduce privacy by leaking data to the clicked result sites.') }}

{{ tab_footer() }} {{ tabs_close() }}