mirror of https://github.com/searxng/searxng.git
Merge pull request #40 from searxng/link-to-stats
[mod] engine errors: link to the stats to create an github issue
This commit is contained in:
commit
e5bcc3cbbe
|
@ -2,11 +2,14 @@
|
||||||
{% if unresponsive_engines %}
|
{% if unresponsive_engines %}
|
||||||
<div class="alert alert-danger fade in" role="alert">
|
<div class="alert alert-danger fade in" role="alert">
|
||||||
<p><strong class="lead">{{ icon('remove-sign') }} {{ _('Error!') }}</strong> {{ _('Engines cannot retrieve results.') }}</p>
|
<p><strong class="lead">{{ icon('remove-sign') }} {{ _('Error!') }}</strong> {{ _('Engines cannot retrieve results.') }}</p>
|
||||||
|
{%- for engine_name, error_type in unresponsive_engines -%}
|
||||||
<p>
|
<p>
|
||||||
{% for engine_name, error_type in unresponsive_engines %}
|
{{- engine_name }} (
|
||||||
{{ engine_name }} ({{ error_type }}){% if not loop.last %}, {% endif %}
|
<a href="{{ url_for('stats', engine=engine_name|e) }}" title="{{ _('View error logs and submit a bug report') }}">
|
||||||
{% endfor %}
|
{{- error_type -}}
|
||||||
|
</a> ){{- '' -}}
|
||||||
</p>
|
</p>
|
||||||
|
{%- endfor -%}
|
||||||
<p><small>{{ _('Please, try again later or find another searx instance.') }} (<a href="{{ brand.PUBLIC_INSTANCES }}">{{ _('Public instances') }}</a>)</small></p>
|
<p><small>{{ _('Please, try again later or find another searx instance.') }} (<a href="{{ brand.PUBLIC_INSTANCES }}">{{ _('Public instances') }}</a>)</small></p>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
|
@ -12,6 +12,11 @@
|
||||||
{%- 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 -%}
|
||||||
|
<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>
|
||||||
|
{%- endif -%}
|
||||||
</div>
|
</div>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
@ -50,9 +55,11 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if checker_result or errors %}
|
{% if checker_result or errors %}
|
||||||
<td class="{{ css_align_class }} {{ label }}">{{- "" -}}
|
<td class="{{ css_align_class }} {{ label }}">{{- "" -}}
|
||||||
<span aria-labelledby="{{engine_name}}_reliablity">
|
<a href="{{ url_for('stats', engine=engine_name|e) }}">{{- "" -}}
|
||||||
{%- if reliabilities[engine_name].checker %}{{ icon('exclamation-sign', 'The checker fails on the some tests') }}{% endif %} {{ r -}}
|
<span aria-labelledby="{{engine_name}}_reliablity">
|
||||||
</span>{{- "" -}}
|
{%- if reliabilities[engine_name].checker %}{{ icon('exclamation-sign', 'The checker fails on the some tests') }}{% endif %} {{ r -}}</a>
|
||||||
|
</span>{{- "" -}}
|
||||||
|
</a>{{- "" -}}
|
||||||
<div class="engine-tooltip text-left" role="tooltip" id="{{engine_name}}_reliablity">
|
<div class="engine-tooltip text-left" role="tooltip" id="{{engine_name}}_reliablity">
|
||||||
{%- if checker_result -%}
|
{%- if checker_result -%}
|
||||||
<p>{{ _("Failed checker test(s): ") }} {{ ', '.join(checker_result) }}</p>
|
<p>{{ _("Failed checker test(s): ") }} {{ ', '.join(checker_result) }}</p>
|
||||||
|
@ -418,22 +425,22 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="text-muted">
|
<p class="text-muted">
|
||||||
{{ _('These settings are stored in your cookies, this allows us not to store this data about you.') }}
|
{{ _('These settings are stored in your cookies, this allows us not to store this data about you.') }}
|
||||||
{{ _("These cookies serve your sole convenience, we don't use these cookies to track you.") }}
|
{{ _("These cookies serve your sole convenience, we don't use these cookies to track you.") }}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
{{ _('Search URL of the currently saved preferences') }}
|
{{ _('Search URL of the currently saved preferences') }}
|
||||||
<small class="text-muted">({{ _('Note: specifying custom settings in the search URL can reduce privacy by leaking data to the clicked result sites.') }})</small>:
|
<small class="text-muted">({{ _('Note: specifying custom settings in the search URL can reduce privacy by leaking data to the clicked result sites.') }})</small>:
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="tab-pane">
|
<div class="tab-pane">
|
||||||
<input readonly="" class="form-control select-all-on-click cursor-text" type="url" value="{{ url_for('index', _external=True) }}?preferences={{ preferences_url_params|e }}{% raw %}&q=%s{% endraw %}">
|
<input readonly="" class="form-control select-all-on-click cursor-text" type="url" value="{{ url_for('index', _external=True) }}?preferences={{ preferences_url_params|e }}{% raw %}&q=%s{% endraw %}">
|
||||||
<input type="submit" class="btn btn-primary" value="{{ _('save') }}" />
|
<input type="submit" class="btn btn-primary" value="{{ _('save') }}" />
|
||||||
<a href="{{ url_for('index') }}"><div class="btn btn-default">{{ _('back') }}</div></a>
|
<a href="{{ url_for('index') }}"><div class="btn btn-default">{{ _('back') }}</div></a>
|
||||||
<a href="{{ url_for('clear_cookies') }}"><div class="btn btn-default">{{ _('Reset defaults') }}</div></a>
|
<a href="{{ url_for('clear_cookies') }}"><div class="btn btn-default">{{ _('Reset defaults') }}</div></a>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -31,7 +31,12 @@
|
||||||
<div class="alert alert-danger fade in" role="alert">
|
<div class="alert alert-danger fade in" role="alert">
|
||||||
<p>{{ _('Engines cannot retrieve results') }}:</p>
|
<p>{{ _('Engines cannot retrieve results') }}:</p>
|
||||||
{%- for engine_name, error_type in unresponsive_engines -%}
|
{%- for engine_name, error_type in unresponsive_engines -%}
|
||||||
{{- engine_name }} ({{ error_type }}){% if not loop.last %}, {% endif %}{{- "" -}}
|
<p>{{- '' -}}
|
||||||
|
{{- engine_name }} (
|
||||||
|
<a href="{{ url_for('stats', engine=engine_name|e) }}" title="{{ _('View error logs and submit a bug report') }}">
|
||||||
|
{{- error_type -}}
|
||||||
|
</a> ){{- '' -}}
|
||||||
|
</p>
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
</div>
|
</div>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
|
@ -2,11 +2,15 @@
|
||||||
{% if unresponsive_engines %}
|
{% if unresponsive_engines %}
|
||||||
<div class="dialog-error" role="alert">
|
<div class="dialog-error" role="alert">
|
||||||
<p><strong>{{ _('Error!') }}</strong> {{ _('Engines cannot retrieve results.') }}</p>
|
<p><strong>{{ _('Error!') }}</strong> {{ _('Engines cannot retrieve results.') }}</p>
|
||||||
<p>
|
{% for engine_name, error_type in unresponsive_engines %}
|
||||||
{% for engine_name, error_type in unresponsive_engines %}
|
<p>{{- '' -}}
|
||||||
{{ engine_name }} ({{ error_type }}){% if not loop.last %}, {% endif %}
|
{{- engine_name }} (
|
||||||
{% endfor %}
|
<a href="{{ url_for('stats', engine=engine_name|e) }}" title="{{ _('View error logs and submit a bug report') }}">
|
||||||
|
{{- error_type -}}
|
||||||
|
</a> ){{- '' -}}
|
||||||
</p>
|
</p>
|
||||||
|
{%- endfor %}
|
||||||
|
|
||||||
<p><small>{{ _('Please, try again later or find another searx instance.') }} (<a href="{{ brand.PUBLIC_INSTANCES }}">{{ _('Public instances') }}</a>) </small></p>
|
<p><small>{{ _('Please, try again later or find another searx instance.') }} (<a href="{{ brand.PUBLIC_INSTANCES }}">{{ _('Public instances') }}</a>) </small></p>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
|
@ -25,6 +25,12 @@
|
||||||
<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 -%}
|
||||||
|
<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>
|
||||||
|
{%- endif -%}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
@ -63,9 +69,11 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if checker_result or errors %}
|
{% if checker_result or errors %}
|
||||||
<td class="{{ label }}">{{- "" -}}
|
<td class="{{ label }}">{{- "" -}}
|
||||||
<span aria-labelledby="{{engine_name}}_reliablity">
|
<a href="{{ url_for('stats', engine=engine_name|e) }}">{{- "" -}}
|
||||||
{%- if reliabilities[engine_name].checker %}{{ icon('warning', 'The checker fails on the some tests') }}{% endif %} {{ r -}}
|
<span aria-labelledby="{{engine_name}}_reliablity">
|
||||||
</span>{{- "" -}}
|
{%- if reliabilities[engine_name].checker %}{{ icon('warning', 'The checker fails on the some tests') }}{% endif %} {{ 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}}_reliablity">
|
||||||
{%- if checker_result -%}
|
{%- if checker_result -%}
|
||||||
<p>{{ _("The checker fails on this tests: ") }} {{ ', '.join(checker_result) }}</p>
|
<p>{{ _("The checker fails on this tests: ") }} {{ ', '.join(checker_result) }}</p>
|
||||||
|
|
|
@ -43,9 +43,13 @@
|
||||||
{% if unresponsive_engines and results|length >= 1 %}
|
{% if unresponsive_engines and results|length >= 1 %}
|
||||||
<div class="dialog-error" role="alert">
|
<div class="dialog-error" role="alert">
|
||||||
<p><strong>{{ _('Error!') }}</strong> {{ _('Engines cannot retrieve results') }}:</p>
|
<p><strong>{{ _('Error!') }}</strong> {{ _('Engines cannot retrieve results') }}:</p>
|
||||||
<p>{% for engine_name, error_type in unresponsive_engines %}
|
{%- for engine_name, error_type in unresponsive_engines -%}
|
||||||
{{- engine_name }} ({{- error_type -}}){% if not loop.last %}, {% endif %}
|
<p>{{- engine_name }} (
|
||||||
{% endfor %}</p>
|
<a href="{{ url_for('stats', engine=engine_name|e) }}" title="{{ _('View error logs and submit a bug report') }}">
|
||||||
|
{{- error_type -}}
|
||||||
|
</a> ){{- '' -}}
|
||||||
|
</p>
|
||||||
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue