summaryrefslogtreecommitdiff
path: root/searx/templates/simple/macros.html
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-04-14 18:11:35 +0200
committerAlexandre Flament <alex@al-f.net>2021-04-21 16:24:46 +0200
commit7cfd8d900a9d828e5fbbcb5df65ffedbf11a5a0f (patch)
treec9388e1739ac76eed7da08bab475cbc5e9a93da6 /searx/templates/simple/macros.html
parentc27fef1cdeeebcc17e21dbdc3dafad00de08a2ce (diff)
downloadsearxng-7cfd8d900a9d828e5fbbcb5df65ffedbf11a5a0f.tar.gz
searxng-7cfd8d900a9d828e5fbbcb5df65ffedbf11a5a0f.zip
[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/simple/macros.html')
-rw-r--r--searx/templates/simple/macros.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/searx/templates/simple/macros.html b/searx/templates/simple/macros.html
index 1eb42667a..8b6851e0e 100644
--- a/searx/templates/simple/macros.html
+++ b/searx/templates/simple/macros.html
@@ -79,7 +79,11 @@
{%- macro checkbox(name, checked, readonly, disabled) -%}
<div class="checkbox">{{- '' -}}
- <input type="checkbox" value="None" id="{{ name }}" name="{{ name }}" {% if checked %}checked{% endif %}{% if readonly %} readonly="readonly" {% endif %}{% if disabled %} disabled="disabled" {% endif %}/>{{- '' -}}
- <label for="{{ name }}"></label>{{- '' -}}
+ {%- if checked == '?' -%}
+ {{ icon_small('warning') }}
+ {%- else -%}
+ <input type="checkbox" value="None" id="{{ name }}" name="{{ name }}" {% if checked %}checked{% endif %}{% if readonly %} readonly="readonly" {% endif %}{% if disabled %} disabled="disabled" {% endif %}/>{{- '' -}}
+ <label for="{{ name }}"></label>{{- '' -}}
+ {%- endif -%}
</div>
{%- endmacro -%}