Submit GH bug: ask the user to do some checks before submitting a new issue

This commit is contained in:
Alexandre Flament 2022-07-03 11:03:20 +02:00
parent cf01f9e603
commit eb489c45ea
4 changed files with 100 additions and 34 deletions

View file

@ -91,15 +91,15 @@
</table>
{% endif %}
<div>
{% if selected_engine_name %}
{% if selected_engine_name %}
<div class="engine-errors">
{% 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 %}
<h3>{% if secondary %}{{ _('Warnings') }}{% else %}{{ _('Errors and exceptions') }}{% endif %}</h3>
<h2>{% if secondary %}{{ _('Warnings') }}{% else %}{{ _('Errors and exceptions') }}{% endif %}</h2>
{% endif %}
<table class="engine-error">
<tbody>
@ -145,7 +145,7 @@
</table>
{% endif %}
{{ new_issue(selected_engine_name, engine_reliabilities[selected_engine_name]) }}
{% endif %}
</div>
</div>
{% endif %}
{% endblock %}