Commit 30b8a478 authored by Pierre Dittgen's avatar Pierre Dittgen

Fix 'Fichier traité' section

parent f66d39d8
......@@ -52,12 +52,12 @@
<h5 class="card-title">
Fichier traité
</h5>
{% if source_type == 'file' %}
{{ source.name }}
{% if source.type == 'file' %}
{{ source.filename }}
{% endif %}
{% if source_type == 'url' %}
<a href="{{source.name}}" target="_blank">
{{source.name}}
{% if source.type == 'url' %}
<a href="{{source.url}}" target="_blank">
{{source.url}}
</a>
{% endif %}
<br />
......
......@@ -373,7 +373,7 @@ def validate(schema_instance: SchemaInstance, source: ValidataResource):
schema_info=schema_info, report=validata_report,
pdf_report_url=pdf_report_url,
validation_date=report_datetime.strftime('le %d/%m/%Y à %Hh%M'),
source=source, source_type=source.type, source_data=source_data,
source=source, source_data=source_data,
schema_current_version=schema_instance.ref,
print_mode=request.args.get('print', 'false') == 'true',
badge_url=badge_url, badge_msg=badge_msg,
......
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