2017-04-06 15:32:05 +02:00
|
|
|
.commentaire
|
2017-02-01 16:44:31 +01:00
|
|
|
.comment-header
|
|
|
|
= commentaire.header
|
|
|
|
.content
|
2017-07-12 13:53:25 +02:00
|
|
|
= sanitize(commentaire.body)
|
2017-12-01 09:57:19 +01:00
|
|
|
|
|
|
|
- if file = commentaire.piece_justificative
|
2017-10-31 17:45:04 +01:00
|
|
|
.file
|
2017-12-01 09:57:19 +01:00
|
|
|
= link_to file.content_url, class: 'link', target: '_blank' do
|
2017-10-31 17:45:04 +01:00
|
|
|
%span.fa.fa-file
|
|
|
|
%div
|
2017-12-01 09:57:19 +01:00
|
|
|
= file.original_filename
|
|
|
|
- elsif commentaire.file.present?
|
2017-02-01 16:44:31 +01:00
|
|
|
.file
|
2017-12-01 09:57:19 +01:00
|
|
|
= link_to commentaire.file_url, class: 'link', target: '_blank' do
|
2017-02-01 16:44:31 +01:00
|
|
|
%span.fa.fa-file
|
|
|
|
%div
|
2017-12-01 09:57:19 +01:00
|
|
|
= commentaire.file_identifier
|