summaryrefslogtreecommitdiff
path: root/searx/templates/simple/base.html
diff options
context:
space:
mode:
authorAlexandre FLAMENT <alexandre.flament@hesge.ch>2022-09-02 08:52:23 +0000
committerAlexandre FLAMENT <alexandre.flament@hesge.ch>2022-09-02 08:52:23 +0000
commit66f72a006ff0b15d30457a645e562c08ca6c0662 (patch)
tree102c044088f44d7a805c3743a510e2649706df3f /searx/templates/simple/base.html
parent94a28ebe5302dfe1b4a757853bb872f16144f791 (diff)
template: when enable_metrics are disabled, hide the empty stats
when metrics are disabled: * hide the link to /stats at the bottom of the pages * in /preferences, hide the columns "Response time" and "Reliability"
Diffstat (limited to 'searx/templates/simple/base.html')
-rw-r--r--searx/templates/simple/base.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/templates/simple/base.html b/searx/templates/simple/base.html
index a2464a1a5..66c1b7434 100644
--- a/searx/templates/simple/base.html
+++ b/searx/templates/simple/base.html
@@ -62,9 +62,9 @@
<footer>
<p>
{{ _('Powered by') }} <a href="{{ url_for('info', pagename='about') }}">searxng</a> - {{ searx_version }} — {{ _('a privacy-respecting, hackable metasearch engine') }}<br/>
- <a href="{{ searx_git_url }}">{{ _('Source code') }}</a> |
- <a href="{{ get_setting('brand.issue_url') }}">{{ _('Issue tracker') }}</a> |
- <a href="{{ url_for('stats') }}">{{ _('Engine stats') }}</a>
+ <a href="{{ searx_git_url }}">{{ _('Source code') }}</a>
+ | <a href="{{ get_setting('brand.issue_url') }}">{{ _('Issue tracker') }}</a>
+ {% if enable_metrics %}| <a href="{{ url_for('stats') }}">{{ _('Engine stats') }}</a>{% endif %}
{% if get_setting('brand.public_instances') %}
| <a href="{{ get_setting('brand.public_instances') }}">{{ _('Public instances') }}</a>
{% endif %}