Commit eb75dc2e authored by Pierre Dittgen's avatar Pierre Dittgen
Browse files

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

parent 0df5763f
...@@ -99,18 +99,18 @@ ...@@ -99,18 +99,18 @@
{{ macros.error_statistics(report) }} {{ macros.error_statistics(report) }}
{% if report.table.errors.structure %}
<div> <div>
<h3>Problèmes de structure</h3> <h3>Problèmes de structure</h3>
{% for err in report.table.errors.structure %} {% if report.table.errors.structure %}
<div class="alert alert-danger"> {% for err in report.table.errors.structure %}
{{ err.message | safe}} <div class="alert alert-danger">
</div> {{ err.message }}
{% endfor %} </div>
{% endfor %}
{% else %}
<p class="text">Aucune erreur de structure</p>
{% endif %}
</div> </div>
{% else %}
<p class="text">Aucune erreur de structure</p>
{% endif %}
{# We do display body errors! #} {# We do display body errors! #}
{% if report.table.do_display_body_errors %} {% if report.table.do_display_body_errors %}
......
Supports Markdown
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