17 lines
495 B
Text
17 lines
495 B
Text
.commentaire
|
|
.comment-header
|
|
= 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
|
|
.file
|
|
= link_to file.content_url, class: 'link', target: '_blank' do
|
|
%span.fa.fa-file
|
|
%div
|
|
= file.original_filename
|