From 48d4296caafb0dfbef0f6a603f53b3d938b92b69 Mon Sep 17 00:00:00 2001 From: MrPaulBlack Date: Sun, 12 Sep 2021 10:37:21 +0200 Subject: [PATCH 1/2] [theme] link to engine stats in footer --- searx/templates/oscar/base.html | 1 + searx/templates/simple/base.html | 1 + 2 files changed, 2 insertions(+) diff --git a/searx/templates/oscar/base.html b/searx/templates/oscar/base.html index 7cd38a25c..df06763fa 100644 --- a/searx/templates/oscar/base.html +++ b/searx/templates/oscar/base.html @@ -85,6 +85,7 @@ {{ _('Powered by') }} SearXNG - {{ searx_version }} - {{ _('a privacy-respecting, hackable metasearch engine') }}
{{ _('Source code') }} | {{ _('Issue tracker') }} | + {{ _('Engine stats') }} | {{ _('Public instances') }}{% if get_setting('general.contact_url') %} | {{ _('Contact instance maintainer') }}{% endif %} diff --git a/searx/templates/simple/base.html b/searx/templates/simple/base.html index 7020de756..27c4b5a4c 100644 --- a/searx/templates/simple/base.html +++ b/searx/templates/simple/base.html @@ -53,6 +53,7 @@ {{ _('Powered by') }} searxng - {{ searx_version }} — {{ _('a privacy-respecting, hackable metasearch engine') }}
{{ _('Source code') }} | {{ _('Issue tracker') }} | + {{ _('Engine stats') }} | {{ _('Public instances') }}{% if get_setting('general.contact_url') %} | {{ _('Contact instance maintainer') }}{% endif %}

From 644ccf16becaf8b598663e9a042aa3d1c4c36c77 Mon Sep 17 00:00:00 2001 From: MrPaulBlack Date: Sun, 12 Sep 2021 10:52:15 +0200 Subject: [PATCH 2/2] [theme] make engine stats clickable --- searx/templates/oscar/stats.html | 2 +- searx/templates/simple/stats.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/searx/templates/oscar/stats.html b/searx/templates/oscar/stats.html index 4be8043ff..646cb9923 100644 --- a/searx/templates/oscar/stats.html +++ b/searx/templates/oscar/stats.html @@ -15,7 +15,7 @@ {% block content %}
-

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

+

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

diff --git a/searx/templates/simple/stats.html b/searx/templates/simple/stats.html index f423b6861..889b5d05a 100644 --- a/searx/templates/simple/stats.html +++ b/searx/templates/simple/stats.html @@ -18,7 +18,7 @@

searx

-

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

+

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

{% if not engine_stats.get('time') %} {{ _('There is currently no data available. ') }}