diff options
author | Alexandre Flament <alex@al-f.net> | 2021-09-18 11:01:39 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2021-09-24 20:38:05 +0200 |
commit | 2f1384f1989ddcdeba96d3e0f300510db235b851 (patch) | |
tree | 504e6e0f457097869d5e8a92a90f8cc7afcb98bd /searx/templates | |
parent | bfd24d1226ccdd1a9c7b07ff240a2198ab4d655b (diff) | |
download | searxng-2f1384f1989ddcdeba96d3e0f300510db235b851.tar.gz searxng-2f1384f1989ddcdeba96d3e0f300510db235b851.zip |
[enh] themes: display the engine descriptions
Diffstat (limited to 'searx/templates')
-rw-r--r-- | searx/templates/oscar/preferences.html | 5 | ||||
-rw-r--r-- | searx/templates/simple/preferences.html | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html index ba861a68e..4b06b9614 100644 --- a/searx/templates/oscar/preferences.html +++ b/searx/templates/oscar/preferences.html @@ -4,6 +4,7 @@ {% if search_engine.about is defined or stats[search_engine.name]['result_count'] > 0 %} {% set about = search_engine.about %} <div class="engine-tooltip" role="tooltip" id="{{ id }}">{{- "" -}} + <p class="description"></p> {% if search_engine.about is defined %} <h5><a href="{{about.website}}" rel="noreferrer">{{about.website}}</a></h5> {%- 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 -%} @@ -343,7 +344,7 @@ <td class="onoff-checkbox"> {{- checkbox_toggle('engine_' + search_engine.name|replace(' ', '_') + '__' + categ|replace(' ', '_'), (search_engine.name, categ) in disabled_engines) -}} </td> - <th scope="row"><span aria-labelledby="{{ 'tooltip_' + categ + '_' + search_engine.name }}"> + <th scope="row" data-engine-name="{{ search_engine.name }}"><span aria-labelledby="{{ 'tooltip_' + categ + '_' + search_engine.name }}"> {%- if search_engine.enable_http %}{{ icon('exclamation-sign', 'No HTTPS') }}{% endif -%} {{- search_engine.name -}}</span> {{- engine_about(search_engine, 'tooltip_' + categ + '_' + search_engine.name) -}} @@ -363,7 +364,7 @@ <td>{{ support_toggle(supports[search_engine.name]['safesearch']) }}</td> <td>{{ support_toggle(supports[search_engine.name]['supports_selected_language']) }}</td> <td>{{ shortcuts[search_engine.name] }}</td> - <th scope="row"><span>{% if search_engine.enable_http %}{{ icon('exclamation-sign', 'No HTTPS') }}{% endif %}{{ search_engine.name }}</span>{{ engine_about(search_engine) }}</th> + <th scope="row" data-engine-name="{{ search_engine.name }}"><span>{% if search_engine.enable_http %}{{ icon('exclamation-sign', 'No HTTPS') }}{% endif %}{{ search_engine.name }}</span>{{ engine_about(search_engine) }}</th> <td class="onoff-checkbox"> {{ checkbox_toggle('engine_' + search_engine.name|replace(' ', '_') + '__' + categ|replace(' ', '_'), (search_engine.name, categ) in disabled_engines) }} </td> diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html index 1164bd04f..190fefe99 100644 --- a/searx/templates/simple/preferences.html +++ b/searx/templates/simple/preferences.html @@ -22,6 +22,7 @@ {% if search_engine.about is defined %} {% set about = search_engine.about %} <div class="engine-tooltip" role="tooltip">{{- "" -}} + <p class="engine-description"></p> <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 -%} @@ -262,7 +263,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 }} {{ engine_about(search_engine) }}</th> + <th class="name" data-engine-name="{{ search_engine.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', supports[search_engine.name]['supports_selected_language'], true, true) }}</td> <td>{{ checkbox(engine_id + '_safesearch', supports[search_engine.name]['safesearch'], true, true) }}</td> |