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

18 lines
495 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 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