diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2021-04-28 17:54:43 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2021-04-29 11:11:05 +0200 |
commit | 8026ed0d3799e999fdae8e361d7f1478d4d8d52f (patch) | |
tree | d198da879b951a21150626af05bc6eccb5b603aa /searx/templates/simple | |
parent | 34bced29ae8ca7aff69ef43ee34d265677e3a5a2 (diff) | |
download | searxng-8026ed0d3799e999fdae8e361d7f1478d4d8d52f.tar.gz searxng-8026ed0d3799e999fdae8e361d7f1478d4d8d52f.zip |
[mod] UI: engine pref-page, about toolbox: add link to stats
In the preference page, in the 'about' toolbox of an engine, add a link to the
stats page of the engine, if the engine had one or more errors.
Condition is::
reliabilities[<engine.name>].errors
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/templates/simple')
-rw-r--r-- | searx/templates/simple/preferences.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html index 76d56675b..3e0f6d4cd 100644 --- a/searx/templates/simple/preferences.html +++ b/searx/templates/simple/preferences.html @@ -25,6 +25,12 @@ <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 -%} {%- if search_engine.enable_http %}<p>{{ icon('exclamation-sign', 'No HTTPS') }}{{ _('No HTTPS')}}</p>{% endif -%} + {%- if reliabilities[search_engine.name].errors -%} + <a href="{{ url_for('stats', engine=search_engine.name|e) }}" title="{{ _('View error logs and submit a bug report') }}"> + {{ _('View error logs and submit a bug report') }} + </a> + {%- endif -%} + </div> {%- endif -%} {%- endmacro %} |