diff --git a/app/views/new_user/dossiers/show/_download_justificatif.html.haml b/app/views/new_user/dossiers/show/_download_justificatif.html.haml index 509c594e0..3df94f6bd 100644 --- a/app/views/new_user/dossiers/show/_download_justificatif.html.haml +++ b/app/views/new_user/dossiers/show/_download_justificatif.html.haml @@ -1,7 +1,12 @@ - if dossier.present? - justificatif = dossier.justificatif_motivation - - if dossier.justificatif_motivation.attached? and dossier.justificatif_motivation.virus_scanner.safe? - .action - = link_to (justificatif), target: '_blank', class: 'button primary' do - %span.icon.download - Télécharger le justificatif + - if justificatif.attached? + - if justificatif.virus_scanner.safe? + .action + = link_to (justificatif), target: '_blank', class: 'button primary' do + %span.icon.download + Télécharger le justificatif + - elsif justificatif.virus_scanner.pending? + %p + Un justificatif a été joint. L'analyse antivirus de ce document est en cours. + = link_to "rafraichir", request.path