summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-09-06 14:56:00 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-09-07 08:20:30 +0200
commite564cef0fe19a78d22cf7fca64fc389d959c02b6 (patch)
tree195e22fbfde6153db567160e085e82342cb68dc7 /searx
parenta26e4eff10b8ed41d7012390d4efc575b9da8eb0 (diff)
downloadsearxng-e564cef0fe19a78d22cf7fca64fc389d959c02b6.tar.gz
searxng-e564cef0fe19a78d22cf7fca64fc389d959c02b6.zip
[fix] make /preferences more CSP compliant - simple & oscar theme
In simple & oscar theme remove ``style=`` properties which violates CSP but seem not to have a magnification in GUI (UX). Fixed files:: ./oscar/preferences.html:25:<td class="{{ label }}" style="padding: 2px">{{- "" -}} ./simple/preferences.html:39:<td class="{{ label }}" style="padding: 2px; width: 13rem;">{{- "" -}} ./simple/preferences.html:77: <div class="engine-tooltip" style="right: 12rem;" role="tooltip" id="{{engine_name}}_reliability"> ./simple/preferences.html:258: <p class="text-muted" style="margin:20px 0;"> Reported-by: https://github.com/searxng/searxng/issues/57 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx')
-rw-r--r--searx/templates/oscar/preferences.html2
-rw-r--r--searx/templates/simple/preferences.html6
2 files changed, 4 insertions, 4 deletions
diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html
index f46d1e620..e7163e027 100644
--- a/searx/templates/oscar/preferences.html
+++ b/searx/templates/oscar/preferences.html
@@ -22,7 +22,7 @@
{%- endmacro %}
{%- macro engine_time(engine_name, css_align_class) -%}
-<td class="{{ label }}" style="padding: 2px">{{- "" -}}
+<td class="{{ label }}">{{- "" -}}
{%- if stats[engine_name].time != None -%}
<span class="stacked-bar-chart-value">{{- stats[engine_name].time -}}</span>{{- "" -}}
<span class="stacked-bar-chart" aria-labelledby="{{engine_name}}_chart" aria-hidden="true">
diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html
index ede958450..164d4bf0d 100644
--- a/searx/templates/simple/preferences.html
+++ b/searx/templates/simple/preferences.html
@@ -36,7 +36,7 @@
{%- endmacro %}
{%- macro engine_time(engine_name) -%}
-<td class="{{ label }}" style="padding: 2px; width: 13rem;">{{- "" -}}
+<td class="{{ label }}">{{- "" -}}
{%- if stats[engine_name].time != None -%}
<span class="stacked-bar-chart-value">{{- stats[engine_name].time -}}</span>{{- "" -}}
<span class="stacked-bar-chart" aria-labelledby="{{engine_name}}_chart" aria-hidden="true">
@@ -76,7 +76,7 @@
{{ icon('warning', 'The engine is not reliabled') }} {{ r -}}
</span>{{- "" -}}
</a>{{- "" -}}
- <div class="engine-tooltip" style="right: 12rem;" role="tooltip" id="{{engine_name}}_reliability">
+ <div class="engine-tooltip" role="tooltip" id="{{engine_name}}_reliability">
{%- if checker_result -%}
<p>{{ _("Failed checker test(s): ") }} {{ ', '.join(checker_result) }}</p>
{%- endif -%}
@@ -257,7 +257,7 @@
{{ tab_header('maintab', 'cookies', _('Cookies')) }}
- <p class="text-muted" style="margin:20px 0;">
+ <p class="text-muted">
{{ _('This is the list of cookies and their values searx is storing on your computer.') }}<br />
{{ _('With that list, you can assess searx transparency.') }}<br />
</p>