From ad1aca682318657955369b1f2cb28a86bc25394c Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sat, 30 Apr 2022 08:04:09 +0200 Subject: [theme] delete static/themes/oscar and templates/oscar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Markus Heiser templates/oscar# gelöscht: searx/static/themes/oscar/fonts/glyphicons-halflings-regular.ttf --- searx/templates/oscar/stats.html | 157 --------------------------------------- 1 file changed, 157 deletions(-) delete mode 100644 searx/templates/oscar/stats.html (limited to 'searx/templates/oscar/stats.html') diff --git a/searx/templates/oscar/stats.html b/searx/templates/oscar/stats.html deleted file mode 100644 index 646cb9923..000000000 --- a/searx/templates/oscar/stats.html +++ /dev/null @@ -1,157 +0,0 @@ -{% extends 'oscar/base.html' %} -{% from '__common__/new_issue.html' import new_issue with context %} - -{% block title %}{{ _('stats') }} - {% if selected_engine_name %} {{ selected_engine_name }} - {% endif %}{% endblock %} - -{%- macro th_sort(column_order, column_name) -%} - {%- if selected_engine_name -%} - {{ column_name }} - {%- elif column_order==sort_order -%} - {{ column_name }} {{ icon('arrow-dropdown') }} - {%- else -%} - {{ column_name }} - {%- endif -%} -{%- endmacro -%} - -{% block content %} -
-

{% if selected_engine_name %}{% endif %}{{ _('Engine stats') }}{% if selected_engine_name %} - {{ selected_engine_name }}{% endif %}

-
-
-
- {% if not engine_stats.get('time') %} -
- {% include 'oscar/messages/no_data_available.html' %} -
- {% else %} - - - - - - - - - {% for engine_stat in engine_stats.get('time', []) %} - - - - - - - - {% endfor %} -
{{ th_sort('name', _("Engine name")) }}{{ th_sort('score', _('Scores')) }}{{ th_sort('result_count', _('Result count')) }}{{ th_sort('time', _('Response time')) }}{{ th_sort('reliability', _('Reliability')) }}
{{ engine_stat.name }} - {%- if engine_stat.score -%} - {{ engine_stat.score|round(1) }} - - {%- endif -%} - - {%- if engine_stat.result_count -%} -
{{- engine_stat.result_count | int -}}
{{- "" -}} - - {%- endif -%} -
- {%- if engine_stat.total is not none -%} -
{{- engine_stat.total | round(1) -}}
{{- "" -}} - - - {%- endif -%} -
{{ engine_reliabilities.get(engine_stat.name, {}).get('reliablity') }}
- {% endif %} -
-
-
- {% if selected_engine_name %} - {% for secondary in [False, True] %} - {% set ns = namespace(first=true) %} - {% for error in engine_reliabilities[selected_engine_name].errors %} - {% if secondary == error.secondary %} - {% if ns.first %} - {% set ns.first = false %} -

{% if secondary %}{{ _('Warnings') }}{% else %}{{ _('Errors and exceptions') }}{% endif %}

- {% endif %} - - - - {%- if error.exception_classname -%} - - {%- elif error.log_message -%} - - {%- endif -%} - - - {% if error.log_parameters and error.log_parameters != (None, None, None) %}{{- '' -}} - - - {% endif %} - - - - -
{{ _('Exception') }}{{ error.exception_classname }}{{ _('Message') }}{{ error.log_message }}{{ _('Percentage') }}{{ error.percentage }}
{{ _('Parameter') }} - {%- for param in error.log_parameters -%} - {{ param }} - {%- endfor -%} -
{{ _('Filename') }}{{ error.filename }}:{{ error.line_no }}
{{ _('Function') }}{{ error.function }}
{{ _('Code') }}{{ error.code }}
- {% endif %} - {% endfor %} - {% endfor %} - {% if engine_reliabilities[selected_engine_name].checker %} -

{{ _('Checker') }}

- - - - - - {% for test_name, results in engine_reliabilities[selected_engine_name].checker.items() %} - - - - - {% endfor %} -
{{ _('Failed test') }}{{ _('Comment(s)') }}
{{ test_name }} - {% for r in results %}

{{ r }}

{% endfor %} -
- {% endif %} - {{ new_issue(selected_engine_name, engine_reliabilities[selected_engine_name]) }} - {% endif %} -
-
-
- -{% endblock %} -- cgit v1.2.3