Merge pull request #1474 from betagouv/fix_empty_pj

PieceJustificative: fix gestionnaire view when pj champ is not filled
This commit is contained in:
LeSim 2018-02-26 16:05:25 +01:00 committed by GitHub
commit e79e06431b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,8 +35,11 @@
= "#{c.libelle} :"
%td.rich-text
- pj = c.piece_justificative_file
%a{ href: url_for(pj), target: '_blank' }
= pj.filename.to_s
- if pj.attached?
%a{ href: url_for(pj), target: '_blank' }
= pj.filename.to_s
- else
Pièce justificative non fournie
- else
%th.libelle
= "#{c.libelle} :"