diff options
author | Alexandre Flament <alex@al-f.net> | 2021-03-22 13:36:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-22 13:36:52 +0100 |
commit | 5f7056cf37a776e7aae151a4d1f5560f1bd0472f (patch) | |
tree | f552cd686917a941fcca8850a34dc9b9eb493b99 /searx/templates/simple/preferences.html | |
parent | bfd4e1b3423993b112bd5e2a60c806fc0c83527f (diff) | |
parent | d6480016888aecb05200af2ad158abee503390df (diff) | |
download | searxng-5f7056cf37a776e7aae151a4d1f5560f1bd0472f.tar.gz searxng-5f7056cf37a776e7aae151a4d1f5560f1bd0472f.zip |
Merge pull request #2661 from dalf/pref-engine-tooltip
[mod] preferences: a tooltip is shown when the mouse is over the engine names
Diffstat (limited to 'searx/templates/simple/preferences.html')
-rw-r--r-- | searx/templates/simple/preferences.html | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html index dff7ffba6..2d2529417 100644 --- a/searx/templates/simple/preferences.html +++ b/searx/templates/simple/preferences.html @@ -18,6 +18,17 @@ {%- endfor -%} {%- endmacro -%} +{% macro engine_about(search_engine) -%} +{% if search_engine.about is defined %} +{% set about = search_engine.about %} +<div class="engine-tooltip" role="tooltip">{{- "" -}} + <p><a href="{{about.website}}" rel="noreferrer">{{about.website}}</a></p> + {%- if about.wikidata_id -%}<p><a href="https://www.wikidata.org/wiki/{{about.wikidata_id}}" rel="noreferrer">wikidata.org/wiki/{{about.wikidata_id}}</a></p>{%- endif -%} + {%- if search_engine.enable_http %}<p>{{ icon('exclamation-sign', 'No HTTPS') }}{{ _('No HTTPS')}}</p>{% endif -%} +</div> +{%- endif -%} +{%- endmacro %} + {% block head %} {% endblock %} {% block content %} @@ -121,7 +132,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">{% if search_engine.enable_http %}{{ icon('warning', 'No HTTPS') }}{% endif %} {{ search_engine.name }}</th> + <th class="name">{% if search_engine.enable_http %}{{ icon('warning', 'No HTTPS') }}{% endif %} {{ search_engine.name }} {{ engine_about(search_engine) }}</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> |