Merge pull request #3872 from betagouv/fix/add-refresh-for-pj
Ajout de plus d'informations utilisateur pour télécharger le justificatif
This commit is contained in:
commit
905145c5e5
1 changed files with 10 additions and 5 deletions
|
@ -1,7 +1,12 @@
|
|||
- if dossier.present?
|
||||
- justificatif = dossier.justificatif_motivation
|
||||
- if dossier.justificatif_motivation.attached? and dossier.justificatif_motivation.virus_scanner.safe?
|
||||
- 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
|
||||
|
|
Loading…
Reference in a new issue