[Fix #1023] If old commentaire.PJ is present, then display it
This commit is contained in:
parent
61b1bccbca
commit
19a951d103
2 changed files with 14 additions and 13 deletions
|
@ -3,15 +3,16 @@
|
|||
= commentaire.header
|
||||
.content
|
||||
= sanitize(commentaire.body)
|
||||
- if commentaire.file.present?
|
||||
.file
|
||||
= link_to commentaire.file_url, class: 'link', target: '_blank' do
|
||||
%span.fa.fa-file
|
||||
%div
|
||||
= commentaire.file_identifier
|
||||
- elsif file = commentaire.piece_justificative
|
||||
|
||||
- if file = commentaire.piece_justificative
|
||||
.file
|
||||
= link_to file.content_url, class: 'link', target: '_blank' do
|
||||
%span.fa.fa-file
|
||||
%div
|
||||
= file.original_filename
|
||||
- elsif commentaire.file.present?
|
||||
.file
|
||||
= link_to commentaire.file_url, class: 'link', target: '_blank' do
|
||||
%span.fa.fa-file
|
||||
%div
|
||||
= commentaire.file_identifier
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue