{% from 'oscar/macros.html' import preferences_item_header, preferences_item_header_rtl, preferences_item_footer, preferences_item_footer_rtl, checkbox_toggle, support_toggle, custom_select_class %} {% extends "oscar/base.html" %} {%- macro engine_about(search_engine, id) -%} {% if search_engine.about is defined or stats[search_engine.name]['result_count'] > 0 %} {% set about = search_engine.about %} {%- endif -%} {%- endmacro %} {%- macro engine_time(engine_name, css_align_class) -%} {{- "" -}} {%- if stats[engine_name].time != None -%} {{- stats[engine_name].time -}}{{- "" -}} {{- "" -}} {%- endif -%} {%- endmacro -%} {%- macro engine_reliability(engine_name, css_align_class) -%} {% set r = reliabilities.get(engine_name, {}).get('reliablity', None) %} {% set checker_result = reliabilities.get(engine_name, {}).get('checker', []) %} {% set errors = reliabilities.get(engine_name, {}).get('errors', []) %} {% if r != None %} {% if r <= 50 %}{% set label = 'danger' %} {% elif r < 80 %}{% set label = 'warning' %} {% elif r < 90 %}{% set label = 'default' %} {% else %}{% set label = 'success' %} {% endif %} {% else %} {% set r = '' %} {% endif %} {% if checker_result or errors %} {{- "" -}} {{- "" -}} {{ icon('exclamation-sign', 'The engine is not reliabled') }} {{ r -}} {{- "" -}} {{- "" -}} {{- "" -}} {%- else -%} {{ r }} {%- endif -%} {%- endmacro -%} {%- macro plugin_of_category(plugin_category) -%} {%- for plugin in plugins -%} {%- if plugin.preference_section == plugin_category -%} {{- preferences_item_header(_(plugin.description), _(plugin.name), rtl, 'plugin_' + plugin.id) -}} {{- checkbox_toggle('plugin_' + plugin.id, plugin.id not in allowed_plugins) -}} {{- preferences_item_footer(_(plugin.description), _(plugin.name), rtl) -}} {%- endif -%} {%- endfor -%} {% endmacro %} {%- block title %}{{ _('preferences') }} - {% endblock -%} {% block content %}

{{ _('Preferences') }}

{% if 'categories' not in locked_preferences %}
{% if rtl %}
{% include 'oscar/categories.html' %}
{% else %}
{% include 'oscar/categories.html' %}
{% endif %}
{% endif %} {% if 'language' not in locked_preferences %} {% set language_label = _('Search language') %} {% set language_info = _('What language do you prefer for search?') %} {{ preferences_item_header(language_info, language_label, rtl, 'language') }} {% include 'oscar/languages.html' %} {{ preferences_item_footer(language_info, language_label, rtl) }} {% endif %} {% if 'safesearch' not in locked_preferences %} {% set safesearch_label = _('SafeSearch') %} {% set safesearch_info = _('Filter content') %} {{ preferences_item_header(safesearch_info, safesearch_label, rtl, 'safesearch') }} {{ preferences_item_footer(safesearch_info, safesearch_label, rtl) }} {% endif %} {% if 'autocomplete' not in locked_preferences %} {% set autocomplete_label = _('Autocomplete') %} {% set autocomplete_info = _('Find stuff as you type') %} {{ preferences_item_header(autocomplete_info, autocomplete_label, rtl, 'autocomplete') }} {{ preferences_item_footer(autocomplete_info, autocomplete_label, rtl) }} {% endif %} {{ plugin_of_category('general' )}} {% if 'doi_resolver' not in locked_preferences %} {% set label = _('Open Access DOI resolver') %} {% set info = _('Redirect to open-access versions of publications when available (plugin required)') %} {{ preferences_item_header(info, label, rtl, 'doi_resolver') }} {{ preferences_item_footer(info, label, rtl) }} {% endif %} {{ plugin_of_category('onion' )}} {% set label = _('Engine tokens') %} {% set info = _('Access tokens for private engines') %} {{ preferences_item_header(info, label, rtl, 'tokens') }} {{ preferences_item_footer(info, label, rtl) }}
{% if 'locale' not in locked_preferences %} {% set locale_label = _('Interface language') %} {% set locale_info = _('Change the language of the layout') %} {{ preferences_item_header(locale_info, locale_label, rtl, 'locale') }} {{ preferences_item_footer(locale_info, locale_label, rtl) }} {% endif %} {% if 'theme' not in locked_preferences %} {% set theme_label = _('Theme') %} {% set theme_info = _('Change SearXNG layout') %} {{ preferences_item_header(theme_info, theme_label, rtl, 'theme') }} {{ preferences_item_footer(theme_info, theme_label, rtl) }} {% endif %} {% if 'oscar-style' not in locked_preferences %} {{ preferences_item_header(_('Choose style for this theme'), _('Style'), rtl, 'oscar_style') }} {{ preferences_item_footer(_('Choose style for this theme'), _('Style'), rtl) }} {% endif %} {% set label = _('Show advanced settings') %} {% set info = _('Show advanced settings panel in the home page by default') %} {{ preferences_item_header(info, label, rtl, 'advanced_search') }} {{ preferences_item_footer(info, label, rtl) }} {% if 'results_on_new_tab' not in locked_preferences %} {% set label = _('Results on new tabs') %} {% set info = _('Open result links on new browser tabs') %} {{ preferences_item_header(info, label, rtl, 'results_on_new_tab') }} {{ preferences_item_footer(info, label, rtl) }} {% endif %} {% if 'infinite_scroll' not in locked_preferences %} {% set label = _('Infinite scroll') %} {% set info = _('Automatically load next page when scrolling to bottom of current page') %} {{ preferences_item_header(info, label, rtl, 'infinite_scroll') }} {{ preferences_item_footer(info, label, rtl) }} {% endif %} {{ plugin_of_category('ui' )}}
{% if 'method' not in locked_preferences %} {% set method_label = _('HTTP Method') %} {% set method_info = _('Change how forms are submited, learn more about request methods') %} {{ preferences_item_header(method_info, method_label, rtl, 'method') }} {{ preferences_item_footer(method_info, method_label, rtl) }} {% endif %} {% if 'image_proxy' not in locked_preferences %} {% set image_proxy_label = _('Image proxy') %} {% set image_proxy_info = _('Proxying image results through SearXNG') %} {{ preferences_item_header(image_proxy_info, image_proxy_label, rtl, 'image_proxy') }} {{ preferences_item_footer(image_proxy_info, image_proxy_label, rtl) }} {% endif %} {% if 'query_in_title' not in locked_preferences %} {% set query_in_title_label = _("Query in the page's title") %} {% set query_in_title_info = _("When enabled, the result page's title contains your query. Your browser can record this title") %} {{ preferences_item_header(query_in_title_info, query_in_title_label, rtl, 'query_in_title') }} {{ preferences_item_footer(query_in_title_info, query_in_title_label, rtl) }} {% endif %} {{ plugin_of_category('privacy' )}}

{% for categ in categories_as_tabs + [OTHER_CATEGORY] %}
{% if categ == OTHER_CATEGORY %}

{{_('This tab does not show up for search results, but you can search the engines listed here via bangs.')}}

{% endif %}
{% if not rtl %} {% else %} {% endif %} {% for group, engines in engines_by_category[categ] | group_engines_in_tab %} {% if loop.length > 1 %} {% endif %} {% for search_engine in engines %} {% if not search_engine.private %} {% if not rtl %} {{ engine_time(search_engine.name, 'text-right') }} {{ engine_reliability(search_engine.name, 'text-right ') }} {% else %} {{ engine_reliability(search_engine.name, 'text-left') }} {{ engine_time(search_engine.name, 'text-left') }} {% endif %} {% endif %} {% endfor %} {% endfor %}
{{ _("Allow") }} {{ _("Engine name") }} {{ _("Shortcut") }} {{ _("Selected language") }} {{ _("SafeSearch") }} {{ _("Time range") }} {{ _("Response time") }} {{ _("Max time") }} {{ _("Reliability") }}{{ _("Reliability") }} {{ _("Max time") }} {{ _("Response time") }} {{ _("Time range") }} {{ _("SafeSearch") }} {{ _("Selected language") }} {{ _("Shortcut") }} {{ _("Engine name") }} {{ _("Allow") }}
{{_(group)}}
{{- checkbox_toggle('engine_' + search_engine.name|replace(' ', '_') + '__' + categ|replace(' ', '_'), (search_engine.name, categ) in disabled_engines) -}} {%- if search_engine.enable_http %}{{ icon('exclamation-sign', 'No HTTPS') }}{% endif -%} {{- search_engine.name -}} {%- if search_engine.about and search_engine.about.language %} ({{search_engine.about.language | upper}}) {%- endif %} {{- engine_about(search_engine, 'tooltip_' + categ + '_' + search_engine.name) -}} {{ shortcuts[search_engine.name] }} {{ support_toggle(supports[search_engine.name]['supports_selected_language']) }} {{ support_toggle(supports[search_engine.name]['safesearch']) }} {{ support_toggle(supports[search_engine.name]['time_range_support']) }}{% if stats[search_engine.name]['warn_timeout'] %}{{ icon('exclamation-sign') }} {% endif %}{{ search_engine.timeout }}{{ search_engine.timeout }}{% if stats[search_engine.name]['warn_time'] %} {{ icon('exclamation-sign')}}{% endif %}{{ support_toggle(supports[search_engine.name]['time_range_support']) }} {{ support_toggle(supports[search_engine.name]['safesearch']) }} {{ support_toggle(supports[search_engine.name]['supports_selected_language']) }} {{ shortcuts[search_engine.name] }} {% if search_engine.enable_http %}{{ icon('exclamation-sign', 'No HTTPS') }}{% endif %}{{ search_engine.name }}{{ engine_about(search_engine) }} {{ checkbox_toggle('engine_' + search_engine.name|replace(' ', '_') + '__' + categ|replace(' ', '_'), (search_engine.name, categ) in disabled_engines) }}
{% endfor %}
{% if answerers %} {{ _('Allow') }} {{ _('Keywords') }} {{ _('Name') }} {{ _('Description') }} {{ _('Examples') }} {% for answerer in answerers %} {% endfor %} {%- for plugin in plugins -%} {%- if plugin.preference_section == 'query' -%} {%- endif -%} {%- endfor -%}
{{ _("This is the list of SearXNG's instant answering modules.") }}
{{ answerer.keywords|join(', ') }} {{ answerer.info.name }} {{ answerer.info.description }} {{ answerer.info.examples|join(', ') }}
{{ _('This is the list of plugins.') }}
{{- checkbox_toggle('plugin_' + plugin.id, plugin.id not in allowed_plugins) -}} {{ plugin.query_keywords|join(', ') }} {{ _(plugin.name) }} {{ _(plugin.description) }} {{ plugin.query_examples }}
{% endif %}

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

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

{{ _('These settings are stored in your cookies, this allows us not to store this data about you.') }} {{ _("These cookies serve your sole convenience, we don't use these cookies to track you.") }}

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

{% endblock %}