From cdfb4b7ff9829cb9048b573f7f1775dc8029f75a Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sun, 16 May 2021 13:16:44 +0200 Subject: [fix] make /stats more CSP compliant - bar graph Replace bar graph's *styles* (see below) by CSP compliant implementation in ``searx/static/themes/__common__/less/stats.less`` :: ./simple/stats.html:49: {{- "" -}} ./simple/stats.html:57: {{- "" -}} ./simple/stats.html:58: {{- "" -}} ./oscar/stats.html:50: {{- "" -}} ./oscar/stats.html:58: {{- "" -}} ./oscar/stats.html:59: {{- "" -}} Reported-by: https://github.com/searxng/searxng/issues/57 Signed-off-by: Markus Heiser --- searx/templates/simple/stats.html | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'searx/templates/simple/stats.html') diff --git a/searx/templates/simple/stats.html b/searx/templates/simple/stats.html index 098a54065..c2396f0e5 100644 --- a/searx/templates/simple/stats.html +++ b/searx/templates/simple/stats.html @@ -44,19 +44,21 @@ {%- if engine_stat.result_count -%} - {{- engine_stat.result_count | int -}}{{- "" -}} - + +
{{- engine_stat.result_count | int -}}
{{- "" -}} + {%- endif -%} {%- if engine_stat.total -%} - {{- engine_stat.total | round(1) -}}{{- "" -}} - {{- "" -}} + +
{{- engine_stat.total | round(1) -}}
{{- "" -}} +