From 131f1aacc4bc8225b78b377d94050b9813fae888 Mon Sep 17 00:00:00 2001 From: clemkeirua Date: Wed, 15 May 2019 11:02:26 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20de=20plus=20d'informations=20utilisateu?= =?UTF-8?q?r=20pour=20t=C3=A9l=C3=A9charger=20le=20justificatif?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../show/_download_justificatif.html.haml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 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 509c594e0..5540050bb 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,16 @@ - 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 + - else + %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.