diff options
| author | Alexandre Flament <alex@al-f.net> | 2021-09-07 18:51:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-07 18:51:00 +0200 |
| commit | a3789b3bb44fd929a730518da678b7754a2c18cb (patch) | |
| tree | de8ad3bf3ac0ac09d198246843a1267c30510d01 /searx/templates/oscar/preferences.html | |
| parent | e41f78b806a4f00cbb37fd4a276aff7d10230057 (diff) | |
| parent | b0623ac9f6e67541cb5bc59880915d401399b216 (diff) | |
Merge pull request #295 from return42/fix-csp-2
[fix] make HTML templates more CSP compliant
Diffstat (limited to 'searx/templates/oscar/preferences.html')
| -rw-r--r-- | searx/templates/oscar/preferences.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html index f46d1e620..ba861a68e 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"> @@ -318,15 +318,15 @@ <th scope="col">{{ _("Allow") }}</th> <th scope="col">{{ _("Engine name") }}</th> <th scope="col">{{ _("Shortcut") }}</th> - <th scope="col" style="width: 10rem">{{ _("Selected language") }}</th> - <th scope="col" style="width: 10rem">{{ _("SafeSearch") }}</th> - <th scope="col" style="width: 10rem">{{ _("Time range") }}</th> + <th scope="col" class="col-stat">{{ _("Selected language") }}</th> + <th scope="col" class="col-stat">{{ _("SafeSearch") }}</th> + <th scope="col" class="col-stat">{{ _("Time range") }}</th> <th scope="col">{{ _("Response time") }}</th> - <th scope="col" class="text-right" style="width: 7rem">{{ _("Max time") }}</th> - <th scope="col" class="text-right" style="width: 7rem">{{ _("Reliablity") }}</th> + <th scope="col" class="col-stat text-right">{{ _("Max time") }}</th> + <th scope="col" class="col-stat text-right">{{ _("Reliablity") }}</th> {% else %} - <th scope="col">{{ _("Reliablity") }}</th> - <th scope="col">{{ _("Max time") }}</th> + <th scope="col" class="col-stat">{{ _("Reliablity") }}</th> + <th scope="col" class="col-stat">{{ _("Max time") }}</th> <th scope="col" class="text-right">{{ _("Response time") }}</th> <th scope="col" class="text-right">{{ _("Time range") }}</th> <th scope="col" class="text-right">{{ _("SafeSearch") }}</th> |