Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alexandre Bulté
validata-ui
Commits
eb75dc2e
Commit
eb75dc2e
authored
Nov 27, 2018
by
Pierre Dittgen
Browse files
Display 'Problèmes de structure' even if no structure errors
parent
0df5763f
Changes
1
Hide whitespace changes
Inline
Side-by-side
validata_ui/templates/validation_report.html
View file @
eb75dc2e
...
...
@@ -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 %}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment