searxngRebrandZaclys/searx/templates/oscar
Markus Heiser 48c806954e [fix] make /preferences more CSP compliant - simple & oscar theme
in simple & oscar theme replace bar-graph's *styles* by CSP compliant
implementation in::

    searx/static/themes/__common__/less/stats.less

Fixed files::

    ./oscar/preferences.html:29:        <span style="width: calc(max(2px, 100%*{{ (stats[engine_name].time / max_rate95)|round(3) }}))" class="stacked-bar-chart-median"></span>{{- "" -}}
    ./oscar/preferences.html:30:        <span style="width: calc(100%*{{ ((stats[engine_name].rate80 - stats[engine_name].time) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate80"></span>{{- "" -}}
    ./oscar/preferences.html:31:        <span style="width: calc(100%*{{ ((stats[engine_name].rate95 - stats[engine_name].rate80) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate95"></span>{{- "" -}}
    ./simple/preferences.html:43:        <span style="width: calc(max(2px, 100%*{{ (stats[engine_name].time / max_rate95)|round(3) }}))" class="stacked-bar-chart-median"></span>{{- "" -}}
    ./simple/preferences.html:44:        <span style="width: calc(100%*{{ ((stats[engine_name].rate80 - stats[engine_name].time) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate80"></span>{{- "" -}}
    ./simple/preferences.html:45:        <span style="width: calc(100%*{{ ((stats[engine_name].rate95 - stats[engine_name].rate80) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate95"></span>{{- "" -}}

Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-06 11:08:50 +02:00
..
messages [mod] drop usage of the searx.brand namespace (templates & /config) 2021-07-21 13:38:28 +02:00
result_templates [fix] openstreetmap - fix some minor whitespace & indentation issues 2021-06-09 18:08:23 +02:00
404.html Drop Python 2 (2/n): templates 2020-09-10 10:39:04 +02:00
about.html [mod] add a __common__ template that can't be selected but that provides a common place for shared templates. 2017-01-20 15:40:38 +01:00
advanced.html [fix] make "Advanced settings" openable and usable with keyboard - #350 2020-06-25 19:50:26 +02:00
base.html version based on the git repository 2021-07-30 14:40:09 +02:00
categories.html [mod] tidy oscar HTML output 2019-12-10 10:58:30 +01:00
index.html [mod] themes: remove legacy, courgette and pix-art themes 2020-12-17 11:33:28 +01:00
infobox.html [mod] duckduckgo_definitions: display only user friendly attributes / URL 2020-10-28 08:09:25 +01:00
languages.html fix selects in preferences so they look consistent (#2150) 2020-08-27 21:55:47 +02:00
macros.html [mod] option to enable or disable "proxy" button next to each result (#54) 2021-05-04 11:57:14 +02:00
navbar.html [mod] tidy oscar HTML output 2019-12-10 10:58:30 +01:00
preferences.html [fix] make /preferences more CSP compliant - simple & oscar theme 2021-09-06 11:08:50 +02:00
results.html [enh] add settings option to enable/disable search formats 2021-05-28 08:32:52 +02:00
search.html [fix] fix the reset button in the oscar theme (#2306) 2020-11-30 16:30:21 +01:00
search_full.html [mod] separate index and search routes 2020-11-02 20:04:03 -07:00
stats.html [mod] drop usage of the searx.brand namespace (templates & /config) 2021-07-21 13:38:28 +02:00
time-range.html fix selects in preferences so they look consistent (#2150) 2020-08-27 21:55:47 +02:00