diff options
| author | Noémi Ványi <sitbackandwait@gmail.com> | 2020-12-09 17:33:18 +0100 |
|---|---|---|
| committer | Noémi Ványi <sitbackandwait@gmail.com> | 2020-12-09 20:49:54 +0100 |
| commit | 3a63dfbdd7ff53c2e083915b0dea481a6ea0aaaa (patch) | |
| tree | e87938d67386bb7d0272c14e1902867eeb152676 /searx/templates | |
| parent | 42a194898baf96e15edeb9268fbec5ecd4423c09 (diff) | |
display if an engine does not support https
Closes #302
Diffstat (limited to 'searx/templates')
| -rw-r--r-- | searx/templates/oscar/macros.html | 4 | ||||
| -rw-r--r-- | searx/templates/oscar/preferences.html | 4 | ||||
| -rw-r--r-- | searx/templates/simple/macros.html | 4 | ||||
| -rw-r--r-- | searx/templates/simple/preferences.html | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/searx/templates/oscar/macros.html b/searx/templates/oscar/macros.html index 2bc1e7805..f40eebd37 100644 --- a/searx/templates/oscar/macros.html +++ b/searx/templates/oscar/macros.html @@ -1,6 +1,6 @@ <!-- Draw glyphicon icon from bootstrap-theme --> -{% macro icon(action) -%} - <span class="glyphicon glyphicon-{{ action }}"></span> +{% macro icon(action, alt) -%} + <span title="{{ alt }}" class="glyphicon glyphicon-{{ action }}"></span> {%- endmacro %} <!-- Draw favicon --> diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html index bc688dade..fc20b8ca5 100644 --- a/searx/templates/oscar/preferences.html +++ b/searx/templates/oscar/preferences.html @@ -230,8 +230,8 @@ <td class="onoff-checkbox"> {{ checkbox_toggle('engine_' + search_engine.name|replace(' ', '_') + '__' + categ|replace(' ', '_'), (search_engine.name, categ) in disabled_engines) }} </td> - <th scope="row">{{ search_engine.name }}</th> - <td class="name">{{ shortcuts[search_engine.name] }}</td> + <th scope="row">{% if not search_engine.https_support %}{{ icon('exclamation-sign', 'No HTTPS') }}{% endif %} {{ search_engine.name }}</td></th> + <td class="name">{{ shortcuts[search_engine.name] }} <td>{{ support_toggle(stats[search_engine.name].supports_selected_language) }}</td> <td>{{ support_toggle(search_engine.safesearch==True) }}</td> <td>{{ support_toggle(search_engine.time_range_support==True) }}</td> diff --git a/searx/templates/simple/macros.html b/searx/templates/simple/macros.html index cacbbec9f..1eb42667a 100644 --- a/searx/templates/simple/macros.html +++ b/searx/templates/simple/macros.html @@ -1,6 +1,6 @@ <!-- Draw glyphicon icon from bootstrap-theme --> -{% macro icon(action) -%} - <span class="ion-icon-big ion-{{ action }}"></span> +{% macro icon(action, alt) -%} + <span title="{{ alt }}" class="ion-icon-big ion-{{ action }}"></span> {%- endmacro %} {% macro icon_small(action) -%} diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html index d68e4be5f..f091a97cf 100644 --- a/searx/templates/simple/preferences.html +++ b/searx/templates/simple/preferences.html @@ -1,4 +1,4 @@ -{% from 'simple/macros.html' import tabs_open, tabs_close, tab_header, tab_footer, checkbox_onoff, checkbox %} +{% from 'simple/macros.html' import icon, tabs_open, tabs_close, tab_header, tab_footer, checkbox_onoff, checkbox %} {% extends "simple/base.html" %} @@ -121,7 +121,7 @@ {% set engine_id = 'engine_' + search_engine.name|replace(' ', '_') + '__' + categ|replace(' ', '_') %} <tr> <td class="engine_checkbox">{{ checkbox_onoff(engine_id, (search_engine.name, categ) in disabled_engines) }}</td> - <th class="name">{{ search_engine.name }}</th> + <th class="name">{% if not search_engine.https_support %}{{ icon('warning', 'No HTTPS') }}{% endif %} {{ search_engine.name }}</th> <td class="shortcut">{{ shortcuts[search_engine.name] }}</td> <td>{{ checkbox(engine_id + '_supported_languages', current_language == 'all' or current_language in search_engine.supported_languages or current_language.split('-')[0] in search_engine.supported_languages, true, true) }}</td> <td>{{ checkbox(engine_id + '_safesearch', search_engine.safesearch==True, true, true) }}</td> |