mirror of
				https://github.com/searxng/searxng.git
				synced 2025-10-31 10:37:06 -04:00 
			
		
		
		
	Merge pull request #55 from searxng/upd-relialibility-column
[themes] /preferences, reliablity: warning icons & error logs link
This commit is contained in:
		
						commit
						d36adfa59f
					
				| @ -12,7 +12,7 @@ | |||||||
|     {%- if stats[search_engine.name]['result_count'] -%} |     {%- if stats[search_engine.name]['result_count'] -%} | ||||||
|         <p>{{ _('Number of results') }}: {{ stats[search_engine.name]['result_count'] }} ( {{ _('Avg.') }} )</p>{{- "" -}} |         <p>{{ _('Number of results') }}: {{ stats[search_engine.name]['result_count'] }} ( {{ _('Avg.') }} )</p>{{- "" -}} | ||||||
|     {%- endif -%} |     {%- 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') }}"> |         <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') }} |           {{ _('View error logs and submit a bug report') }} | ||||||
|         </a> |         </a> | ||||||
| @ -56,11 +56,11 @@ | |||||||
| {% if checker_result or errors %} | {% if checker_result or errors %} | ||||||
| <td class="{{ css_align_class }} {{ label }}">{{- "" -}} | <td class="{{ css_align_class }} {{ label }}">{{- "" -}} | ||||||
|     <a href="{{ url_for('stats', engine=engine_name|e) }}">{{- "" -}} |     <a href="{{ url_for('stats', engine=engine_name|e) }}">{{- "" -}} | ||||||
|         <span aria-labelledby="{{engine_name}}_reliablity"> |         <span aria-labelledby="{{engine_name}}_reliability"> | ||||||
|             {%- if reliabilities[engine_name].checker %}{{ icon('exclamation-sign', 'The checker fails on the some tests') }}{% endif %} {{ r -}}</a> |             {{ icon('exclamation-sign', 'The engine is not reliabled') }} {{ r -}} | ||||||
|         </span>{{- "" -}} |         </span>{{- "" -}} | ||||||
|     </a>{{- "" -}} |     </a>{{- "" -}} | ||||||
|     <div class="engine-tooltip text-left" role="tooltip" id="{{engine_name}}_reliablity"> |     <div class="engine-tooltip text-left" role="tooltip" id="{{engine_name}}_reliability"> | ||||||
|         {%- if checker_result -%} |         {%- if checker_result -%} | ||||||
|         <p>{{ _("Failed checker test(s): ") }} {{ ', '.join(checker_result) }}</p> |         <p>{{ _("Failed checker test(s): ") }} {{ ', '.join(checker_result) }}</p> | ||||||
|         {%- endif -%} |         {%- endif -%} | ||||||
|  | |||||||
| @ -25,7 +25,7 @@ | |||||||
|     <p><a href="{{about.website}}" rel="noreferrer">{{about.website}}</a></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 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 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') }}"> |     <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') }} |       {{ _('View error logs and submit a bug report') }} | ||||||
|     </a> |     </a> | ||||||
| @ -70,13 +70,13 @@ | |||||||
| {% if checker_result or errors %} | {% if checker_result or errors %} | ||||||
| <td class="{{ label }}">{{- "" -}} | <td class="{{ label }}">{{- "" -}} | ||||||
|     <a href="{{ url_for('stats', engine=engine_name|e) }}">{{- "" -}} |     <a href="{{ url_for('stats', engine=engine_name|e) }}">{{- "" -}} | ||||||
|       <span aria-labelledby="{{engine_name}}_reliablity"> |       <span aria-labelledby="{{engine_name}}_reliability"> | ||||||
|           {%- if reliabilities[engine_name].checker %}{{ icon('warning', 'The checker fails on the some tests') }}{% endif %} {{ r -}} |           {{ icon('warning', 'The engine is not reliabled') }} {{ r -}} | ||||||
|       </span>{{- "" -}} |       </span>{{- "" -}} | ||||||
|     </a>{{- "" -}} |     </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 -%} |         {%- if checker_result -%} | ||||||
|         <p>{{ _("The checker fails on this tests: ") }} {{ ', '.join(checker_result) }}</p> |         <p>{{ _("Failed checker test(s): ") }} {{ ', '.join(checker_result) }}</p> | ||||||
|         {%- endif -%} |         {%- endif -%} | ||||||
|         {%- if errors %}<p>{{ _('Errors:') }}</p>{% endif -%} |         {%- if errors %}<p>{{ _('Errors:') }}</p>{% endif -%} | ||||||
|         {%- for error in errors -%} |         {%- for error in errors -%} | ||||||
| @ -85,7 +85,7 @@ | |||||||
|     </div>{{- "" -}} |     </div>{{- "" -}} | ||||||
| </td> | </td> | ||||||
| {%- else -%} | {%- else -%} | ||||||
| <td class="{{ css_align_class }} {{ label }}"><span>{{ r }}</span></td> | <td class="{{ label }}"><span>{{ r }}</span></td> | ||||||
| {%- endif -%} | {%- endif -%} | ||||||
| {%- endmacro -%} | {%- endmacro -%} | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user