diff options
| author | Alexandre Flament <alex@al-f.net> | 2021-04-14 18:11:35 +0200 |
|---|---|---|
| committer | Alexandre Flament <alex@al-f.net> | 2021-04-21 16:24:46 +0200 |
| commit | 7cfd8d900a9d828e5fbbcb5df65ffedbf11a5a0f (patch) | |
| tree | c9388e1739ac76eed7da08bab475cbc5e9a93da6 /searx/templates/oscar/macros.html | |
| parent | c27fef1cdeeebcc17e21dbdc3dafad00de08a2ce (diff) | |
[mod] oscar: /preferences , engines tab: report engine times
* display the median time instead of the average.
* add a "Reliability" column (sum up the metrics and the checker results).
* the "selected language", "SafeSearch", "Time range" values are displayed as "broken" when the checker tests fail.
Diffstat (limited to 'searx/templates/oscar/macros.html')
| -rw-r--r-- | searx/templates/oscar/macros.html | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/searx/templates/oscar/macros.html b/searx/templates/oscar/macros.html index 1cf46074f..0e9dc227a 100644 --- a/searx/templates/oscar/macros.html +++ b/searx/templates/oscar/macros.html @@ -134,13 +134,11 @@ custom-select{% if rtl %}-rtl{% endif %} {%- endmacro %} {% macro support_toggle(supports) -%} - {%- if supports -%} - <span class="label label-success"> - {{- _("supported") -}} - </span> + {%- if supports == '?' -%} + <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true" title="{{- _('broken') -}}"></span>{{- "" -}} + {%- elif supports -%} + <span class="glyphicon glyphicon-ok" aria-hidden="true" title="{{- _('supported') -}}"></span>{{- "" -}} {%- else -%} - <span class="label label-danger"> - {{- _("not supported") -}} - </span> + <span aria-hidden="true" title="{{- _('not supported') -}}"></span>{{- "" -}} {%- endif -%} {%- endmacro %} |