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
Validata
Validata UI
Commits
2a496e39
Commit
2a496e39
authored
Jan 26, 2021
by
Pierre Dittgen
Browse files
Move recommandations block before structure errors
parent
c561e788
Changes
1
Hide whitespace changes
Inline
Side-by-side
validata_ui/templates/validation_report.html
View file @
2a496e39
...
...
@@ -75,6 +75,16 @@
({{ report.table.col_count }} colonnes × {{ report.table.row_count }} lignes)
</p>
{% if report.warn_count != 0 %}
<p>
{% if report.warn_count == 1 %}
1 recommandation
{% else %}
{{ report.warn_count }} recommandations
{% endif %}
</p>
{% endif %}
{% if report.error_count == 0 %}
<p>
Aucune erreur détectée
</p>
{% else %}
...
...
@@ -89,42 +99,38 @@
{% endif %}
</p>
{% endif %}
{% if report.warn_count != 0 %}
<p>
{% if report.warn_count == 1 %}
1 recommandation
{% else %}
{{ report.warn_count }} recommandations
{% endif %}
</p>
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% if report.warn_count != 0 %}
<div
class=
"mx-4"
>
<h3
class=
"my-4"
>
Recommandations
</h3>
<ul>
{% for warn in report.warnings %}
<li>
{{ warn.message | commonmark2html | safe}}
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if report.table.errors.structure %}
<div
class=
"mx-4"
>
{% if report.table.errors.structure %}
<h3
class=
"my-4"
>
Erreurs de structure ({{ report.table['error-stats']['structure-errors']['count']}})
</h3>
<ul>
{% for err in report.table.errors.structure %}
<li>
{{ err.message | commonmark2html | safe}}
</li>
{% endfor %}
</ul>
{% endif %}
</div>
{% endif %}
{# Display body errors #}
<div
class=
"mx-4"
>
{% if report.warn_count != 0 %}
<h3
class=
"my-4"
>
Recommandations
</h3>
<ul>
{% for warn in report.warnings %}
<li>
{{ warn.message | commonmark2html | safe}}
</li>
{% endfor %}
</ul>
{% endif %}
<h3
class=
"my-4"
>
{% if report.table.errors.body %}
{% set value_errors = report.table['error-stats']['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