diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2021-05-04 12:20:45 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-04 12:20:45 +0000 |
| commit | d36adfa59f242a8775ad74245c696d62b7727a36 (patch) | |
| tree | 4fd3d9ba24a9b6265850c26de2c5113cebd336dd /searx/templates/simple | |
| parent | 5253df946b8eb45903ed6ea7e724ec6b5000b2cf (diff) | |
| parent | e83862c22f17295b8d493240cd0c51d25d1c59f9 (diff) | |
Merge pull request #55 from searxng/upd-relialibility-column
[themes] /preferences, reliablity: warning icons & error logs link
Diffstat (limited to 'searx/templates/simple')
| -rw-r--r-- | searx/templates/simple/preferences.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html index 3e0f6d4cd..6d33233c7 100644 --- a/searx/templates/simple/preferences.html +++ b/searx/templates/simple/preferences.html @@ -25,7 +25,7 @@ <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 -%} - {%- if reliabilities[search_engine.name].errors -%} + {%- if reliabilities.get(search_engine.name, {}).errors or reliabilities.get(search_engine.name, {}).checker -%} <a href="{{ url_for('stats', engine=search_engine.name|e) }}" title="{{ _('View error logs and submit a bug report') }}"> {{ _('View error logs and submit a bug report') }} </a> @@ -70,13 +70,13 @@ {% if checker_result or errors %} <td class="{{ label }}">{{- "" -}} <a href="{{ url_for('stats', engine=engine_name|e) }}">{{- "" -}} - <span aria-labelledby="{{engine_name}}_reliablity"> - {%- if reliabilities[engine_name].checker %}{{ icon('warning', 'The checker fails on the some tests') }}{% endif %} {{ r -}} + <span aria-labelledby="{{engine_name}}_reliability"> + {{ icon('warning', 'The engine is not reliabled') }} {{ r -}} </span>{{- "" -}} </a>{{- "" -}} - <div class="engine-tooltip" style="right: 12rem;" role="tooltip" id="{{engine_name}}_reliablity"> + <div class="engine-tooltip" style="right: 12rem;" role="tooltip" id="{{engine_name}}_reliability"> {%- if checker_result -%} - <p>{{ _("The checker fails on this tests: ") }} {{ ', '.join(checker_result) }}</p> + <p>{{ _("Failed checker test(s): ") }} {{ ', '.join(checker_result) }}</p> {%- endif -%} {%- if errors %}<p>{{ _('Errors:') }}</p>{% endif -%} {%- for error in errors -%} @@ -85,7 +85,7 @@ </div>{{- "" -}} </td> {%- else -%} -<td class="{{ css_align_class }} {{ label }}"><span>{{ r }}</span></td> +<td class="{{ label }}"><span>{{ r }}</span></td> {%- endif -%} {%- endmacro -%} |