demarches-normaliennes/app/views/dossiers/commentaires/_commentaire.html.haml

19 lines
496 B
Text
Raw Normal View History

2017-04-06 15:32:05 +02:00
.commentaire
.comment-header
= commentaire.header
.content
2017-07-12 13:53:25 +02:00
= sanitize(commentaire.body)
- 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