add trad if export failed

This commit is contained in:
Lisa Durand 2023-12-18 14:09:47 +01:00
parent a9ab1daf3a
commit 53f9f3cbdb
5 changed files with 21 additions and 3 deletions

View file

@ -35,5 +35,7 @@
%p
- if @has_last_export.pending?
= t('instructeurs.procedures.last_export_pending')
- else
- if @has_last_export.generated?
= t('instructeurs.procedures.last_export_available_html', file_format: @has_last_export.format, file_url: @has_last_export.file.url)
- if @has_last_export.failed?
= t('instructeurs.procedures.last_export_failed', file_format: @has_last_export.format)

View file

@ -15,5 +15,7 @@
%p
- if @has_last_export.pending?
= t('instructeurs.procedures.last_export_pending')
- else
- if @has_last_export.generated?
= t('instructeurs.procedures.last_export_available_html', file_format: @has_last_export.format, file_url: @has_last_export.file.url)
- if @has_last_export.failed?
= t('instructeurs.procedures.last_export_failed', file_format: @has_last_export.format)