Commit 3b3b6643 authored by Christophe Benz's avatar Christophe Benz

Tweak CSS

parent 4fb992f2
......@@ -21,7 +21,7 @@
<div class="col-md-5">
{% endif %}
<h1>{{ title }}</h1>
<p class="text">Validation effectuée {{ validation_date }}</p>
<p>Validation effectuée {{ validation_date }}</p>
{% if print_mode %}
</div>
<div class="col-md-7">
......@@ -30,7 +30,11 @@
</div>
{% endif %}
{% if source.type == 'url' %}
<p class="text hidden-print">Obtenir le rapport au format <a href="{{ url_for('pdf_report', val_code=val_info.code) }}?url={{source.name|urlencode}}">PDF</a>
<p class="hidden-print">
<a href="{{ url_for('pdf_report', val_code=val_info.code) }}?url={{source.name|urlencode}}">
Télécharger en PDF
</a>
</p>
{% endif %}
{# Schema info #}
<div class="row">
......@@ -43,7 +47,7 @@
</h5>
<h6 class="card-subtitle mb-2 text-muted">{{ val_info.description }}</h6>
{% if val_info.author or val_info.contributor %}
<p class="text">
<p>
{% if val_info.author %}
Auteur : {{ val_info.author }}
{% endif %}
......@@ -56,24 +60,19 @@
<a href="{{ val_info.doc_url }}" target="_blank" class="card-link">Documentation</a>
</p>
<hr />
<p class="text alert alert-secondary" style="margin-bottom: 0;">
Source
<div>
Fichier traité :
{% if source_type == 'file' %}
(fichier) : <em>{{ source.name }}</em>
{{ source.name }}
{% endif %}
{% if source_type == 'url' %}
(URL) : <em><a href="{{source.name}}" target="_blank" title="{{source.name}}">
{% if print_mode %}
<a href="{{source.name}}" target="_blank">
{{source.name}}
{% else %}
{{source.name | truncate(60)}}
{% endif %}
</a></em>
</a>
{% endif %}
<br />
Dimensions : <em>{{ report.table.col_count }} colonnes et {{ report.table.row_count }}
lignes</em>
</p>
Dimensions : {{ report.table.col_count }} colonnes et {{ report.table.row_count }} lignes
</div>
</div>
</div>
</div>
......@@ -91,7 +90,7 @@
<h2>La table est invalide</h2>
<p class="text">{{ report.table['error-stats']['count'] }} erreur(s) détectée(s).</p>
<p>{{ report.table['error-stats']['count'] }} erreur(s) détectée(s).</p>
{{ macros.error_statistics(report) }}
......@@ -115,7 +114,7 @@
{# Afficher un tableau de comparaison des colonnes #}
{% if report.table.column_comparison_needed %}
<table class="table table-bordered table-sm table-striped">
<table class="table table-bordered table-sm table-striped table-hover">
<thead class="thead-light">
<tr>
<th scope="col">Colonnes du fichier</th>
......@@ -131,12 +130,12 @@
{% endfor %}
</tbody>
</table>
{% endif %}
{% else %}
<p class="text">Aucune erreur de structure</p>
<p>Aucune erreur de structure</p>
{% endif %}
{# We do display body errors! #}
......@@ -145,21 +144,21 @@
{# No errors - display preview #}
{% if not report.table.errors.body %}
<p class="text">
<p>
Aucune erreur de contenu
</p>
{{ macros.preview(source_data) }}
{% else %}
{# display errors #}
{{ macros.body_errors(report, source_data) }}
{% endif %}
{# do not display errors #}
{% else %}
<p class="text">
<p>
Veuillez corriger ce(s) erreur(s) pour visualiser les éventuels problèmes de contenu.
</p>
{% endif %}
......
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