mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
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"
This commit is contained in:
@@ -450,6 +450,7 @@ def render(template_name: str, **kwargs):
|
||||
kwargs['instance_name'] = get_setting('general.instance_name')
|
||||
kwargs['searx_version'] = VERSION_STRING
|
||||
kwargs['searx_git_url'] = GIT_URL
|
||||
kwargs['enable_metrics'] = get_setting('general.enable_metrics')
|
||||
kwargs['get_setting'] = get_setting
|
||||
kwargs['get_pretty_url'] = get_pretty_url
|
||||
|
||||
|
||||
Reference in New Issue
Block a user