Commit eb75dc2e authored by Pierre Dittgen's avatar Pierre Dittgen

Display 'Problèmes de structure' even if no structure errors

parent 0df5763f
......@@ -99,18 +99,18 @@
{{ macros.error_statistics(report) }}
{% if report.table.errors.structure %}
<div>
<h3>Problèmes de structure</h3>
{% for err in report.table.errors.structure %}
<div class="alert alert-danger">
{{ err.message | safe}}
</div>
{% endfor %}
{% if report.table.errors.structure %}
{% for err in report.table.errors.structure %}
<div class="alert alert-danger">
{{ err.message }}
</div>
{% endfor %}
{% else %}
<p class="text">Aucune erreur de structure</p>
{% endif %}
</div>
{% else %}
<p class="text">Aucune erreur de structure</p>
{% endif %}
{# We do display body errors! #}
{% if report.table.do_display_body_errors %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment