Merge pull request #1474 from betagouv/fix_empty_pj
PieceJustificative: fix gestionnaire view when pj champ is not filled
This commit is contained in:
commit
e79e06431b
1 changed files with 5 additions and 2 deletions
|
@ -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} :"
|
||||
|
|
Loading…
Reference in a new issue