2018-09-11 17:32:08 +02:00
|
|
|
= render partial: 'shared/dossiers/messages/message_icon', locals: { commentaire: commentaire, connected_user: connected_user }
|
2017-11-28 11:37:42 +01:00
|
|
|
|
|
|
|
.width-100
|
|
|
|
%h2
|
|
|
|
%span.mail
|
2018-09-11 17:32:08 +02:00
|
|
|
= render partial: 'shared/dossiers/messages/message_issuer', locals: { commentaire: commentaire, connected_user: connected_user }
|
2018-09-06 16:08:24 +02:00
|
|
|
- if commentaire_is_from_guest(commentaire)
|
2017-11-28 11:37:42 +01:00
|
|
|
%span.guest Invité
|
2017-12-05 17:20:10 +01:00
|
|
|
%span.date{ class: highlight_if_unseen_class(messagerie_seen_at, commentaire.created_at) }
|
2018-09-06 15:04:43 +02:00
|
|
|
= commentaire_date(commentaire)
|
2017-11-29 17:11:50 +01:00
|
|
|
.rich-text= sanitize(commentaire.body)
|
2017-11-28 11:37:42 +01:00
|
|
|
|
2017-12-01 09:57:19 +01:00
|
|
|
- if commentaire.piece_justificative
|
2017-11-28 11:37:42 +01:00
|
|
|
.attachment-link
|
|
|
|
= link_to commentaire.piece_justificative.content_url, class: "button", target: "_blank", title: "Télécharger" do
|
2017-12-12 14:51:44 +01:00
|
|
|
%span.icon.attachment
|
2017-11-28 11:37:42 +01:00
|
|
|
= commentaire.piece_justificative.original_filename
|
2017-12-01 09:57:19 +01:00
|
|
|
- elsif commentaire.file.present?
|
|
|
|
.attachment-link
|
|
|
|
= link_to commentaire.file_url, class: "button", target: "_blank", title: "Télécharger" do
|
2017-12-12 14:51:44 +01:00
|
|
|
%span.icon.attachment
|
2017-12-01 09:57:19 +01:00
|
|
|
= commentaire.file_identifier
|