2021-11-13 10:42:07 +01:00
{% from 'simple/macros.html' import tabs_open, tabs_close, tab_header, tab_footer, checkbox_onoff, checkbox %}
{% from 'simple/icons.html' import icon_big %}
2017-02-12 15:06:01 +01:00
2022-01-30 09:39:21 +01:00
{% extends "simple/page_with_header.html" %}
2017-02-12 15:06:01 +01:00
{%- macro plugin_preferences(section) -%}
{%- for plugin in plugins -%}
{%- if plugin.preference_section == section -%}
< fieldset > {{- '' -}}
< legend > {{ _(plugin.name) }}</ legend > {{- '' -}}
< div class = "value" >
{{- checkbox_onoff('plugin_' + plugin.id, plugin.id not in allowed_plugins) -}}
</ div > {{- '' -}}
< div class = "description" >
{{- _(plugin.description) -}}
</ div > {{- '' -}}
</ fieldset >
{%- endif -%}
{%- endfor -%}
{%- endmacro -%}
2021-03-16 16:47:05 +01:00
{% macro engine_about(search_engine) -%}
{% if search_engine.about is defined %}
{% set about = search_engine.about %}
< div class = "engine-tooltip" role = "tooltip" > {{- "" -}}
2022-02-25 15:46:18 +01:00
< p class = "engine-description" ></ p > {{- "" -}}
2021-03-16 16:47:05 +01:00
< p >< a href = "{{about.website}}" rel = "noreferrer" > {{about.website}}</ a ></ p >
{%- if about.wikidata_id -%}< p >< a href = "https://www.wikidata.org/wiki/{{about.wikidata_id}}" rel = "noreferrer" > wikidata.org/wiki/{{about.wikidata_id}}</ a ></ p > {%- endif -%}
2021-11-13 10:42:07 +01:00
{%- if search_engine.enable_http %}< p > {{ icon_big('exclamation-sign', 'No HTTPS') }}{{ _('No HTTPS')}}</ p > {% endif -%}
2021-04-30 11:49:39 +02:00
{%- if reliabilities.get(search_engine.name, {}).errors or reliabilities.get(search_engine.name, {}).checker -%}
2021-04-28 17:54:43 +02:00
< a href = "{{ url_for('stats', engine=search_engine.name|e) }}" title = "{{ _('View error logs and submit a bug report') }}" >
2022-02-25 15:46:18 +01:00
{{ _('View error logs and submit a bug report') -}}
2021-04-28 17:54:43 +02:00
</ a >
{%- endif -%}
2022-07-24 12:06:49 +02:00
< p >< span class = "right" > {{ _("!bang for this engine") }}</ span > {% for bang in [search_engine.name] + [search_engine.shortcut] %}< span class = "bang" > {{ '!' + bang.replace(' ', '_') }}</ span > {% endfor %}</ p >
< p >< span class = "right" > {{ _("!bang for its categories") }}</ span > {% for bang in search_engine.categories %}< span class = "bang" > {{ '!' + bang.replace(' ', '_') }}</ span > {% endfor %}</ p >
2021-03-16 16:47:05 +01:00
</ div >
{%- endif -%}
{%- endmacro %}
2021-04-14 18:11:35 +02:00
{%- macro engine_time(engine_name) -%}
2021-09-06 14:56:00 +02:00
< td class = "{{ label }}" > {{- "" -}}
2021-04-14 18:11:35 +02:00
{%- if stats[engine_name].time != None -%}
< span class = "stacked-bar-chart-value" > {{- stats[engine_name].time -}}</ span > {{- "" -}}
2021-05-19 11:28:57 +02:00
< span class = "stacked-bar-chart" aria-labelledby = "{{engine_name}}_chart" aria-hidden = "true" >
{%- if max_rate95 is not none and max_rate95 > 0 -%}
2021-09-05 16:03:00 +02:00
< div class = "stacked-bar-chart-median bar{{ (100 * (stats[engine_name].time / max_rate95))|round }}" ></ div > {{- "" -}}
< div class = "stacked-bar-chart-rate80 bar{{ (100 * ((stats[engine_name].rate80 - stats[engine_name].time) / max_rate95))|round }}" ></ div > {{- "" -}}
< div class = "stacked-bar-chart-rate95 bar{{ (100 * ((stats[engine_name].rate95 - stats[engine_name].rate80) / max_rate95))|round }}" ></ div > {{- "" -}}
2021-05-19 11:28:57 +02:00
< span class = "stacked-bar-chart-rate100" ></ span >
{%- endif -%}
2021-04-14 18:11:35 +02:00
</ span > {{- "" -}}
< div class = "engine-tooltip text-left" role = "tooltip" id = "{{engine_name}}_graph" > {{- "" -}}
< p > {{ _('Median') }}: {{ stats[engine_name].time }}</ p > {{- "" -}}
< p > {{ _('P80') }}: {{ stats[engine_name].rate80 }}</ p > {{- "" -}}
< p > {{ _('P95') }}: {{ stats[engine_name].rate95 }}</ p > {{- "" -}}
</ div >
{%- endif -%}
</ td >
{%- endmacro -%}
{%- macro engine_reliability(engine_name) -%}
{% 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 = '' %}
{% else %}{% set label = 'success' %}
{% endif %}
{% else %}
{% set r = '' %}
{% endif %}
{% if checker_result or errors %}
2021-09-07 12:35:26 +02:00
< td class = "{{ label }} column-reliability" > {{- "" -}}
2021-04-25 14:19:35 +02:00
< a href = "{{ url_for('stats', engine=engine_name|e) }}" > {{- "" -}}
2021-04-30 11:49:39 +02:00
< span aria-labelledby = "{{engine_name}}_reliability" >
2021-11-13 10:42:07 +01:00
{{ icon_big('warning', 'The engine is not reliabled') }} {{ r -}}
2021-04-25 14:19:35 +02:00
</ span > {{- "" -}}
</ a > {{- "" -}}
2021-09-06 14:56:00 +02:00
< div class = "engine-tooltip" role = "tooltip" id = "{{engine_name}}_reliability" >
2021-04-14 18:11:35 +02:00
{%- if checker_result -%}
2021-04-30 11:49:39 +02:00
< p > {{ _("Failed checker test(s): ") }} {{ ', '.join(checker_result) }}</ p >
2021-04-14 18:11:35 +02:00
{%- endif -%}
{%- if errors %}< p > {{ _('Errors:') }}</ p > {% endif -%}
{%- for error in errors -%}
< p > {{ error }} </ p > {{- "" -}}
{%- endfor -%}
</ div > {{- "" -}}
</ td >
{%- else -%}
2022-02-25 15:46:18 +01:00
< td class = "{{ label }}" > {% if r %}< span > {{ r }}</ span > {% endif %}</ td >
2021-04-14 18:11:35 +02:00
{%- endif -%}
{%- endmacro -%}
2017-02-12 15:06:01 +01:00
{% block head %} {% endblock %}
2022-01-31 11:50:20 +01:00
{% block linkto_preferences %}{% endblock %}
2017-02-12 15:06:01 +01:00
{% block content %}
2022-01-30 09:39:21 +01:00
< h1 > {{ _('Preferences') }}</ h1 >
2017-02-12 15:06:01 +01:00
2022-02-25 15:46:18 +01:00
< form id = "search_form" method = "post" action = "{{ url_for('preferences') }}" autocomplete = "off" class = "reversed-checkbox" >
2017-02-12 15:06:01 +01:00
{{ tabs_open() }}
2022-03-19 19:55:54 +01:00
{{ tab_header('maintab', 'general', _('General'), True) }}
2021-09-24 16:15:26 +02:00
{% if 'categories' not in locked_preferences %}
< fieldset >
< legend > {{ _('Default categories') }}</ legend >
{% set display_tooltip = false %}
{% include 'simple/categories.html' %}
</ fieldset >
{% endif %}
{% if 'language' not in locked_preferences %}
< fieldset >
2022-02-05 08:56:42 +01:00
< legend id = "pref_language" > {{ _('Search language') }}</ legend >
2021-09-24 16:15:26 +02:00
< p class = "value" > {{- '' -}}
2022-02-05 08:56:42 +01:00
< select name = 'language' aria-labelledby = "pref_language" aria-describedby = "desc_language" > {{- '' -}}
2022-10-10 19:31:22 +02:00
< option value = "all" {% if current_language = = ' all ' %} selected = "selected" {% endif %} > {{ _('Default language') }} [all]</ option >
< option value = "auto" {% if current_language = = ' auto ' %} selected = "selected" {% endif %} > {{ _('Auto-detect') }} [auto]</ option >
{%- for sxng_tag,lang_name,country_name,english_name,flag in sxng_locales | sort(attribute=1) -%}
< option value = "{{ sxng_tag }}" {% if sxng_tag = = current_language %} selected = "selected" {% endif %} > {% if flag %}{{ flag }} {% endif%} {{- lang_name }} {% if country_name %} - {{ country_name }} {% endif %} [{{sxng_tag}}]</ option >
2021-09-24 16:15:26 +02:00
{%- endfor -%}
</ select > {{- '' -}}
</ p >
2022-12-16 20:28:57 +00:00
< div class = "description" id = "desc_language" >
{{- _('What language do you prefer for search?') }} {{ _('Choose Auto-detect to let SearXNG detect the language of your query.') -}}
</ div >
2021-09-24 16:15:26 +02:00
</ fieldset >
{% endif %}
{% if 'autocomplete' not in locked_preferences %}
< fieldset >
2022-02-05 08:56:42 +01:00
< legend id = "pref_autocomplete" > {{ _('Autocomplete') }}</ legend >
2021-09-24 16:15:26 +02:00
< p class = "value" >
2022-02-05 08:56:42 +01:00
< select name = "autocomplete" aria-labelledby = "pref_autocomplete" >
2021-09-24 16:15:26 +02:00
< option value = "" > - </ option >
{%- for backend in autocomplete_backends -%}
< option value = "{{ backend }}" {% if backend = = autocomplete %} selected = "selected" {% endif %} > {{ backend }}</ option >
{%- endfor -%}
</ select >
</ p >
< div class = "description" > {{ _('Find stuff as you type') }}</ div >
</ fieldset >
{% endif %}
{% if 'safesearch' not in locked_preferences %}
< fieldset >
2022-02-05 08:56:42 +01:00
< legend id = "pref_safesearch" > {{ _('SafeSearch') }}</ legend >
2021-09-24 16:15:26 +02:00
< p class = "value" >
2022-02-05 08:56:42 +01:00
< select name = 'safesearch' aria-labelledby = "pref_safesearch" >
2021-09-24 16:15:26 +02:00
< option value = "2" {% if safesearch = = ' 2 ' %} selected = "selected" {% endif %} > {{ _('Strict') }}</ option >
< option value = "1" {% if safesearch = = ' 1 ' %} selected = "selected" {% endif %} > {{ _('Moderate') }}</ option >
< option value = "0" {% if safesearch = = ' 0 ' %} selected = "selected" {% endif %} > {{ _('None') }}</ option >
</ select >
</ p >
< p class = "description" > {{ _('Filter content') }}</ p >
</ fieldset >
{% endif %}
{{ plugin_preferences('general') }}
{% if 'doi_resolver' not in locked_preferences %}
< fieldset >
2022-02-05 08:56:42 +01:00
< legend id = "pref_doi_resolver" > {{ _('Open Access DOI resolver') }}</ legend >
2021-09-24 16:15:26 +02:00
< p class = "value" >
2022-02-05 08:56:42 +01:00
< select id = 'doi_resolver' name = 'doi_resolver' aria-labelledby = "pref_doi_resolver" >
2021-09-24 16:15:26 +02:00
{%- for doi_resolver_name,doi_resolver_url in doi_resolvers.items() -%}
< option value = "{{ doi_resolver_name }}" {% if doi_resolver_url = = current_doi_resolver %} selected = "selected" {% endif %} >
{{- doi_resolver_name }} - {{ doi_resolver_url -}}
</ option >
2017-02-12 15:06:01 +01:00
{%- endfor -%}
2021-09-24 16:15:26 +02:00
</ select >
</ p >
< div class = "description" > <!-- {{ _('Redirect to open-access versions of publications when available (plugin required)') }} --> </ div >
</ fieldset >
{% endif %}
2021-11-12 11:38:28 +01:00
< fieldset >
2022-02-05 08:56:42 +01:00
< legend id = "pref_tokens" > {{ _('Engine tokens') }}</ legend >
2021-11-12 11:38:28 +01:00
< p class = "value" >
2022-02-05 08:56:42 +01:00
< input name = "tokens" aria-labelledby = "pref_tokens" type = "text" autocomplete = "off" spellcheck = "false" autocorrect = "off" value = '{{ preferences.tokens.get_value() }}' />
2021-11-12 11:38:28 +01:00
</ p >
< p class = "description" > {{ _('Access tokens for private engines') }}</ p >
</ fieldset >
2017-02-12 15:06:01 +01:00
{{ tab_footer() }}
{{ tab_header('maintab', 'ui', _('User interface')) }}
2021-09-24 16:15:26 +02:00
{% if 'locale' not in locked_preferences %}
< fieldset >
2022-02-05 08:56:42 +01:00
< legend id = "pref_locale" > {{ _('Interface language') }}</ legend >
2021-09-24 16:15:26 +02:00
< p class = "value" >
2022-02-05 08:56:42 +01:00
< select name = 'locale' aria-labelledby = "pref_locale" >
2022-02-25 15:46:18 +01:00
{%- for locale_id,locale_name in locales.items() | sort -%}
2021-09-24 16:15:26 +02:00
< option value = "{{ locale_id }}" {% if locale_id = = current_locale %} selected = "selected" {% endif %} > {{ locale_name }}</ option >
2022-02-25 15:46:18 +01:00
{%- endfor -%}
2021-09-24 16:15:26 +02:00
</ select >
</ p >
< div class = "description" > {{ _('Change the language of the layout') }}</ div >
</ fieldset >
{% endif %}
{% if 'theme' not in locked_preferences %}
< fieldset >
2022-02-05 08:56:42 +01:00
< legend id = "pref_theme" > {{ _('Theme') }}</ legend >
2021-09-24 16:15:26 +02:00
< p class = "value" >
2022-02-05 08:56:42 +01:00
< select name = "theme" aria-labelledby = "pref_theme" >
2021-09-24 16:15:26 +02:00
{%- for name in themes -%}
< option value = "{{ name }}" {% if name = = theme %} selected = "selected" {% endif %} > {{ name }}</ option >
{%- endfor -%}
</ select >
</ p >
2021-10-01 16:33:31 +02:00
< div class = "description" > {{ _('Change SearXNG layout') }}</ div >
2021-09-24 16:15:26 +02:00
</ fieldset >
2021-11-19 13:49:16 +01:00
< fieldset >
2022-02-05 08:56:42 +01:00
< legend id = "pref_simple_style" > {{ _('Theme style') }}</ legend >
2021-11-19 13:49:16 +01:00
< p class = "value" >
2022-02-05 08:56:42 +01:00
< select name = "simple_style" aria-labelledby = "pref_simple_style" >
2021-11-19 13:49:16 +01:00
{%- for name in ['auto', 'light', 'dark'] -%}
< option value = "{{ name }}" {% if name = = preferences . get_value (' simple_style ') %} selected = "selected" {% endif %} > {{ _(name) }}</ option >
{%- endfor -%}
</ select >
</ p >
< div class = "description" > {{ _('Choose auto to follow your browser settings') }}</ div >
</ fieldset >
2022-06-03 14:10:48 +02:00
< fieldset >
2022-07-03 17:35:54 +02:00
< legend id = "pref_center_alignment" > {{ _('Center Alignment') }}</ legend >
2022-06-03 14:10:48 +02:00
< p class = "value" >
2022-07-03 17:35:54 +02:00
< select name = "center_alignment" aria-labelledby = "pref_center_alignment" >
< option value = "1" {% if preferences . get_value (' center_alignment ') %} selected = "selected" {% endif %} > {{ _('On') }}</ option >
< option value = "0" {% if not preferences . get_value (' center_alignment ') %} selected = "selected" {% endif %} > {{ _('Off')}}</ option >
2022-06-03 14:10:48 +02:00
</ select >
</ p >
< div class = "description" > {{ _('Displays results in the center of the page (Oscar layout).') }}</ div >
</ fieldset >
2021-09-24 16:15:26 +02:00
{% endif %}
{% if 'results_on_new_tab' not in locked_preferences %}
< fieldset >
2022-02-05 08:56:42 +01:00
< legend id = "pref_results_on_new_tab" > {{ _('Results on new tabs') }}</ legend >
2021-09-24 16:15:26 +02:00
< p class = "value" >
2022-02-05 08:56:42 +01:00
< select name = 'results_on_new_tab' aria-labelledby = "pref_results_on_new_tab" >
2021-09-24 16:15:26 +02:00
< option value = "1" {% if results_on_new_tab %} selected = "selected" {% endif %} > {{ _('On') }}</ option >
< option value = "0" {% if not results_on_new_tab %} selected = "selected" {% endif %} > {{ _('Off')}}</ option >
</ select >
</ p >
< div class = "description" > {{_('Open result links on new browser tabs') }}</ div >
</ fieldset >
{% endif %}
2022-01-23 11:37:57 +01:00
{% if 'infinite_scroll' not in locked_preferences %}
< fieldset >
< legend > {{ _('Infinite scroll') }}</ legend >
< p class = "value" >
< select name = 'infinite_scroll' >
< option value = "1" {% if infinite_scroll %} selected = "selected" {% endif %} > {{ _('On') }}</ option >
< option value = "0" {% if not infinite_scroll %} selected = "selected" {% endif %} > {{ _('Off')}}</ option >
</ select >
</ p >
< div class = "description" > {{ _('Automatically load next page when scrolling to bottom of current page') }}</ div >
</ fieldset >
{% endif %}
2021-09-24 16:15:26 +02:00
{{ plugin_preferences('ui') }}
2017-02-12 15:06:01 +01:00
{{ tab_footer() }}
2021-09-24 16:21:43 +02:00
{{ tab_header('maintab', 'privacy', _('Privacy')) }}
{% if 'method' not in locked_preferences %}
< fieldset >
2022-02-05 08:56:42 +01:00
< legend id = "pref_method" > {{ _('HTTP Method') }}</ legend >
2021-09-24 16:21:43 +02:00
< p class = "value" >
2022-02-05 08:56:42 +01:00
< select name = 'method' aria-labelledby = "pref_method" >
2021-09-24 16:21:43 +02:00
< option value = "POST" {% if method = = ' POST ' %} selected = "selected" {% endif %} > POST</ option >
< option value = "GET" {% if method = = ' GET ' %} selected = "selected" {% endif %} > GET</ option >
</ select >
</ p >
2022-09-27 17:01:00 +02:00
< div class = "description" > {{ _('Change how forms are submitted, < a href = "http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods" rel = "external" > learn more about request methods</ a > ') }}</ div >
2021-09-24 16:21:43 +02:00
</ fieldset >
{% endif %}
{% if 'image_proxy' not in locked_preferences %}
< fieldset >
2022-02-05 08:56:42 +01:00
< legend id = "pref_image_proxy" > {{ _('Image proxy') }}</ legend >
2021-09-24 16:21:43 +02:00
< p class = "value" >
2022-02-05 08:56:42 +01:00
< select name = 'image_proxy' aria-labelledby = "pref_image_proxy" >
2021-09-24 16:21:43 +02:00
< option value = "1" {% if image_proxy %} selected = "selected" {% endif %} > {{ _('Enabled') }}</ option >
2022-07-17 19:51:12 +02:00
< option value = "0" {% if not image_proxy %} selected = "selected" {% endif %} > {{ _('Disabled') }}</ option >
2021-09-24 16:21:43 +02:00
</ select >
</ p >
2021-10-01 16:33:31 +02:00
< div class = "description" > {{ _('Proxying image results through SearXNG') }}</ div >
2021-09-24 16:21:43 +02:00
</ fieldset >
{% endif %}
2021-11-06 12:26:48 +01:00
{% if 'query_in_title' not in locked_preferences %}
< fieldset >
2022-02-05 08:56:42 +01:00
< legend id = "pref_query_in_title" > {{ _("Query in the page's title") }}</ legend >
2021-11-06 12:26:48 +01:00
< p class = "value" >
2022-02-05 08:56:42 +01:00
< select name = 'query_in_title' aria-labelledby = "pref_query_in_title" >
2021-11-06 12:26:48 +01:00
< option value = "1" {% if query_in_title %} selected = "selected" {% endif %} > {{ _('Enabled') }}</ option >
2022-07-17 19:51:12 +02:00
< option value = "0" {% if not query_in_title %} selected = "selected" {% endif %} > {{ _('Disabled') }}</ option >
2021-11-06 12:26:48 +01:00
</ select >
</ p >
2021-11-24 17:40:03 +01:00
< div class = "description" > {{ _("When enabled, the result page's title contains your query. Your browser can record this title") }}</ div >
2021-11-06 12:26:48 +01:00
</ fieldset >
{% endif %}
2021-09-24 16:21:43 +02:00
{{ plugin_preferences('privacy') }}
{{ tab_footer() }}
{{ tab_header('maintab', 'engines', _('Engines')) }}
< p > {{ _('Currently used search engines') }}</ p >
{{ tabs_open() }}
2022-03-19 19:55:54 +01:00
{% set ns = namespace(checked=true) %}
2022-07-24 09:32:05 +02:00
{% for categ in categories_as_tabs + [DEFAULT_CATEGORY] %}
2022-03-19 19:55:54 +01:00
{{ tab_header('enginetab', 'category' + categ, _(categ), ns.checked )}}
{% set ns.checked = false %}
2022-07-24 09:32:05 +02:00
{% if categ == DEFAULT_CATEGORY %}
< p > {{_('This tab dues not exists in the user interface, but you can search in these engines by its !bangs.')}} < a href = "{{ url_for('info', pagename='search-syntax') }}" > ⓘ </ a ></ p >
{% endif %}
2021-09-24 16:21:43 +02:00
< div class = "scrollx" >
2022-02-25 15:46:18 +01:00
< table class = "striped table_engines" >
< tr > {{- "" -}}
< th class = "engine_checkbox" > {{ _("Allow") }}</ th > {{- "" -}}
< th class = "name" > {{ _("Engine name") }}</ th > {{- "" -}}
2022-07-24 12:06:49 +02:00
< th class = "shortcut" > {{ _("Bang") }}</ th > {{- "" -}}
2022-02-25 15:46:18 +01:00
< th > {{ _("Supports selected language") }}</ th > {{- "" -}}
< th > {{ _("SafeSearch") }}</ th > {{- "" -}}
< th > {{ _("Time range") }}</ th > {{- "" -}}
2022-09-02 08:52:23 +00:00
{%- if enable_metrics %}< th > {{ _("Response time") }}</ th > {% endif -%}
2022-02-25 15:46:18 +01:00
< th > {{ _("Max time") }}</ th > {{- "" -}}
2022-09-02 08:52:23 +00:00
{%- if enable_metrics %}< th > {{ _("Reliability") }}</ th > {% endif -%}
2021-09-24 16:21:43 +02:00
</ tr >
2022-07-24 12:06:49 +02:00
{% for group, group_bang, engines in engines_by_category[categ] | group_engines_in_tab %}
2021-12-28 14:51:21 +01:00
{% if loop.length > 1 %}
2022-07-24 12:06:49 +02:00
< tr >
< th class = "engine-group" colspan = "2" > {{_(group)}}</ th >
< th class = "engine-group" colspan = "7" > {% if group_bang %}< span class = "bang" > {{group_bang}}</ span > {% endif %}</ th >
</ tr > {{- "" -}}
2021-12-28 14:51:21 +01:00
{% endif %}
{% for search_engine in engines %}
2021-09-24 16:21:43 +02:00
{% if not search_engine.private %}
{% set engine_id = 'engine_' + search_engine.name|replace(' ', '_') + '__' + categ|replace(' ', '_') %}
2022-02-25 15:46:18 +01:00
< tr > {{- "" -}}
< td > {{ checkbox_onoff(engine_id, (search_engine.name, categ) in disabled_engines) }}</ td > {{- "" -}}
< th class = "name" data-engine-name = "{{ search_engine.name }}" > {% if search_engine.enable_http %}{{ icon_big('warning', 'No HTTPS') }}{% endif -%}
< label for = "{{ engine_id }}" >
{{- search_engine.name -}}
2022-07-24 12:06:49 +02:00
{%- if search_engine.about and search_engine.about.language %}
2021-12-25 19:34:07 +01:00
({{search_engine.about.language | upper}})
2022-02-25 15:46:18 +01:00
{%- endif -%}
</ label >
{{- engine_about(search_engine) -}}
</ th > {{- "" -}}
2022-07-24 12:06:49 +02:00
< td class = "shortcut" >< span class = "bang" > {{ '!' + shortcuts[search_engine.name] }}</ span ></ td > {{- "" -}}
2022-02-25 15:46:18 +01:00
< td > {{ checkbox(None, supports[search_engine.name]['supports_selected_language'], true) }}</ td > {{- "" -}}
< td > {{ checkbox(None, supports[search_engine.name]['safesearch'], true) }}</ td > {{- "" -}}
< td > {{ checkbox(None, supports[search_engine.name]['time_range_support'], true) }}</ td > {{- "" -}}
2022-09-02 08:52:23 +00:00
{%- if enable_metrics %}{{- engine_time(search_engine.name) -}}{% endif -%}
2022-02-25 15:46:18 +01:00
< td class = "{{ 'danger' if stats[search_engine.name]['warn_timeout'] else '' }}" > {{ search_engine.timeout }}</ td > {{- "" -}}
2022-09-02 08:52:23 +00:00
{%- if enable_metrics %}{{ engine_reliability(search_engine.name) -}}{% endif -%}
2021-09-24 16:21:43 +02:00
</ tr >
{% endif %}
{% endfor %}
2021-12-28 14:51:21 +01:00
{% endfor %}
2021-09-24 16:21:43 +02:00
</ table >
</ div >
{{ tab_footer() }}
{% endfor %}
{{ tabs_close() }}
2018-08-09 16:13:50 +02:00
{{ tab_footer() }}
2021-09-24 16:04:10 +02:00
{{ tab_header('maintab', 'query', _('Special Queries')) }}
{% if answerers %}
< div class = "scrollx" >
< table class = "striped" >
< tr >
< th > {{ _('Allow') }}</ th >
< th > {{ _('Keywords') }}</ th >
< th > {{ _('Name') }}</ th >
< th > {{ _('Description') }}</ th >
< th > {{ _('Examples') }}</ th >
</ tr >
< td ></ td >
2021-11-24 17:40:03 +01:00
< th scope = "colgroup" colspan = "4" > {{ _("This is the list of SearXNG's instant answering modules.") }}</ th >
2021-09-24 16:04:10 +02:00
{% for answerer in answerers %}
< tr >
< td ></ td >
< td > {{ answerer.keywords|join(', ') }}</ td >
2021-09-24 19:14:35 +02:00
< td > {{ answerer.info.name }}</ td >
2021-09-24 16:04:10 +02:00
< td > {{ answerer.info.description }}</ td >
< td > {{ answerer.info.examples|join(', ') }}</ td >
</ tr >
{% endfor %}
< td ></ td >
< th scope = "colgroup" colspan = "4" > {{ _('This is the list of plugins.') }}</ th >
{%- for plugin in plugins -%}
{%- if plugin.preference_section == 'query' -%}
< tr >
< td > {{- checkbox_onoff('plugin_' + plugin.id, plugin.id not in allowed_plugins) -}}</ td >
< td > {{ plugin.query_keywords|join(', ') }}</ td >
2021-09-24 19:14:35 +02:00
< td > {{ _(plugin.name) }}</ td >
2021-09-24 16:04:10 +02:00
< td > {{ _(plugin.description) }}</ td >
< td > {{ plugin.query_examples }}</ td >
</ tr >
{%- endif -%}
{%- endfor -%}
</ table >
</ div >
{% endif %}
{{ tab_footer() }}
2021-09-24 16:21:43 +02:00
{{ tab_header('maintab', 'cookies', _('Cookies')) }}
2022-02-25 15:46:18 +01:00
< p class = "text-muted" > {{- "" -}}
{{- _('This is the list of cookies and their values SearXNG is storing on your computer.') }}< br /> {{- "" -}}
{{- _('With that list, you can assess SearXNG transparency.') }}< br /> {{- "" -}}
2021-09-24 16:21:43 +02:00
</ p >
{% if cookies %}
< table class = "cookies" >
2022-02-25 15:46:18 +01:00
< tr > {{- "" -}}
< th > {{ _('Cookie name') }}</ th > {{- "" -}}
< th > {{ _('Value') }}</ th > {{- "" -}}
2021-09-24 16:21:43 +02:00
</ tr >
{% for cookie in cookies %}
2022-02-25 15:46:18 +01:00
< tr > {{- "" -}}
< td > {{ cookie }}</ td > {{- "" -}}
< td > {{ cookies[cookie] }}</ td > {{- "" -}}
2021-09-24 16:21:43 +02:00
</ tr >
{% endfor %}
</ table >
{% else %}
2022-04-30 08:01:53 +02:00
{% include 'simple/messages/no_cookies.html' %}
2021-09-24 16:21:43 +02:00
{% endif %}
< h4 > {{ _('Search URL of the currently saved preferences') }} :</ h4 >
< div class = "selectable_url" >
< pre > {{ url_for('index', _external=True) }}?preferences={{ preferences_url_params|e }}{% raw %}& q=%s{% endraw %}</ pre >
</ div >
< p class = "small_font" > {{ _('Note: specifying custom settings in the search URL can reduce privacy by leaking data to the clicked result sites.') }}</ p >
2022-05-14 14:12:55 +02:00
< h4 > {{ _('URL to restore your preferences in another browser') }} :</ h4 >
< div class = "selectable_url" >
< pre > {{ url_for('preferences', _external=True) }}?preferences={{ preferences_url_params|e }}& save=1</ pre >
</ div >
< p class = "small_font" > {{ _('Specifying custom settings in the preferences URL can be used to sync preferences across devices.') }}</ p >
2017-02-12 15:06:01 +01:00
{{ tab_footer() }}
2021-09-24 16:15:26 +02:00
{{ tabs_close() }}
2017-02-12 15:06:01 +01:00
< p class = "small_font" > {{ _('These settings are stored in your cookies, this allows us not to store this data about you.') }}
< br />
{{ _("These cookies serve your sole convenience, we don't use these cookies to track you.") }}
2019-01-07 10:22:48 +01:00
</ p >
2017-02-12 15:06:01 +01:00
2022-01-22 18:28:22 +01:00
< input type = "submit" value = "{{ _('Save') }}" />
2017-02-12 15:06:01 +01:00
< div class = "{% if rtl %}left{% else %}right{% endif %} preferences_back" >< a href = "{{ url_for('clear_cookies') }}" > {{ _('Reset defaults') }}</ a ></ div >
2022-01-22 18:28:22 +01:00
< div class = "{% if rtl %}left{% else %}right{% endif %} preferences_back" >< a href = "{{ url_for('index') }}" > {{ _('Back') }}</ a ></ div >
2017-02-12 15:06:01 +01:00
</ form >
{% endblock %}