diff options
author | Alexandre Flament <alex@al-f.net> | 2021-04-22 08:34:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-22 08:34:17 +0200 |
commit | c6d5605d272c963b075bf17eba7407d0a700cd2a (patch) | |
tree | 799ef589f587465f1b8d323fc1f569b1c7590f2a /searx/templates/simple/macros.html | |
parent | b7848e342273526192a3392dcfd8c291196506ac (diff) | |
parent | baff1cbbab8a72155823c3186971a5f56d7a92f2 (diff) | |
download | searxng-c6d5605d272c963b075bf17eba7407d0a700cd2a.tar.gz searxng-c6d5605d272c963b075bf17eba7407d0a700cd2a.zip |
Merge pull request #7 from searxng/metrics
Metrics
Diffstat (limited to 'searx/templates/simple/macros.html')
-rw-r--r-- | searx/templates/simple/macros.html | 8 |
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 -%} |