searxng-beetroot/beetroot_template/preferences/engines.html
2023-09-17 11:03:23 +02:00

3.9 KiB

{%- set ns = namespace(checked=true) -%} {%- for categ in categories_as_tabs + [DEFAULT_CATEGORY] -%} {{- tab_header('enginetab', 'category_' + categ, _(categ), ns.checked ) -}} {%- set ns.checked = false -%} {%- if categ == DEFAULT_CATEGORY -%}

{{- _('This tab does not exists in the user interface, but you can search in these engines by its !bangs.') -}} {{- ' ' -}}ⓘ

{%- endif -%}
{{- '' -}} {{- '' -}} {{- '' -}} {{- '' -}} {{- '' -}} {{- '' -}} {{- '' -}} {{- '' -}} {{- '' -}} {%- if enable_metrics -%} {%- endif -%} {%- if enable_metrics -%} {%- endif -%} {{- '' -}} {%- for group, group_bang, 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 -%} {%- set engine_id = 'engine_' + search_engine.name|replace(' ', '_') + '__' + categ|replace(' ', '_') -%} {{- '' -}} {{- '' -}} {{- '' -}} {{- '' -}} {{- '' -}} {{- '' -}} {{- '' -}} {{- '' -}} {%- if enable_metrics -%} {{- engine_time(search_engine.name) -}} {%- endif -%} {{- '' -}} {%- if enable_metrics -%} {{- engine_reliability(search_engine.name) -}} {%- endif -%} {%- endif -%} {%- endfor -%} {%- endfor -%}
{{- _("Allow") -}}{{- _("Engine name") -}}{{ _("!bang") -}}{{- _("Supports selected language") -}}{{- _("SafeSearch") -}}{{- _("Time range") -}}{{- _("Weight") }}{{- _("Response time") -}}{{- _("Max time") -}}{{- _("Reliability") }}
{{- _(group) -}} {%- if group_bang -%} {{- group_bang -}} {%- endif -%}
{{- checkbox_onoff_reversed(engine_id, (search_engine.name, categ) in disabled_engines) -}} {%- if search_engine.enable_http -%} {{- icon_big('warning', 'No HTTPS') -}} {%- endif -%} {{- engine_about(search_engine) -}} {{- '' -}} {{ '!' + shortcuts[search_engine.name] }}{{- '' -}} {{- checkbox(None, supports[search_engine.name]['supports_selected_language'], true) -}} {{- checkbox(None, supports[search_engine.name]['safesearch'], true) -}} {{- checkbox(None, supports[search_engine.name]['time_range_support'], true) -}} {{- search_engine.weight or '1.0' -}} {{- search_engine.timeout -}}
{{- '' -}}
{{- tab_footer() -}} {%- endfor -%}