From 285e75f470ab6a9484606c644cdf396184a33fff Mon Sep 17 00:00:00 2001 From: clemkeirua Date: Wed, 15 May 2019 14:38:04 +0200 Subject: [PATCH] correction wording --- .../dossiers/show/_download_justificatif.html.haml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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 5540050bb..3df94f6bd 100644 --- a/app/views/new_user/dossiers/show/_download_justificatif.html.haml +++ b/app/views/new_user/dossiers/show/_download_justificatif.html.haml @@ -6,11 +6,7 @@ = link_to (justificatif), target: '_blank', class: 'button primary' do %span.icon.download Télécharger le justificatif - - else + - elsif justificatif.virus_scanner.pending? %p - Un justificatif a été joint. - - if justificatif.virus_scanner.pending? - L'analyse antivirus de ce document est en cours. - = link_to "rafraichir", request.path - - if justificatif.virus_scanner.infected? - Il semble contenir un virus : merci de contacter l'administration pour lui demander un autre justificatif. + Un justificatif a été joint. L'analyse antivirus de ce document est en cours. + = link_to "rafraichir", request.path