From eb489c45ea74d10cfca4eefbca8c8da027f73963 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Sun, 3 Jul 2022 11:03:20 +0200 Subject: Submit GH bug: ask the user to do some checks before submitting a new issue --- searx/templates/simple/new_issue.html | 12 +++++++++++- searx/templates/simple/stats.html | 10 +++++----- 2 files changed, 16 insertions(+), 6 deletions(-) (limited to 'searx/templates/simple') diff --git a/searx/templates/simple/new_issue.html b/searx/templates/simple/new_issue.html index 55dbefe60..91f4f13b5 100644 --- a/searx/templates/simple/new_issue.html +++ b/searx/templates/simple/new_issue.html @@ -60,6 +60,16 @@ or manually by executing the searx/webapp.py file? --> {{-'\n '}}* {{ test_name }}: {% for result in results%}`{{ result }}`,{% endfor -%} {%- endfor -%} - + + +
+

{{ _('Please check for existing bugs about this engine on GitHub') }}

+
+ + +
+

{{ _('If this is a public instance, please specify the URL in the bug report') }}

+ +
{% endmacro %} diff --git a/searx/templates/simple/stats.html b/searx/templates/simple/stats.html index 9cc035cfd..378fedd43 100644 --- a/searx/templates/simple/stats.html +++ b/searx/templates/simple/stats.html @@ -91,15 +91,15 @@ {% endif %} -
- {% if selected_engine_name %} +{% if selected_engine_name %} +
{% for secondary in [False, True] %} {% set ns = namespace(first=true) %} {% for error in engine_reliabilities[selected_engine_name].errors %} {% if secondary == error.secondary %} {% if ns.first %} {% set ns.first = false %} -

{% if secondary %}{{ _('Warnings') }}{% else %}{{ _('Errors and exceptions') }}{% endif %}

+

{% if secondary %}{{ _('Warnings') }}{% else %}{{ _('Errors and exceptions') }}{% endif %}

{% endif %} @@ -145,7 +145,7 @@
{% endif %} {{ new_issue(selected_engine_name, engine_reliabilities[selected_engine_name]) }} - {% endif %} -
+
+{% endif %} {% endblock %} -- cgit v1.2.3