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)
|
2018-11-29 15:00:26 +01:00
|
|
|
.rich-text= sanitize(simple_format(commentaire.body))
|
2017-11-28 11:37:42 +01:00
|
|
|
|
2019-06-25 17:12:44 +02:00
|
|
|
- if commentaire.piece_jointe.attached?
|
|
|
|
.attachment-link
|
|
|
|
= render partial: "shared/attachment/show", locals: { attachment: commentaire.piece_jointe.attachment }
|
|
|
|
- elsif commentaire.file.present?
|
2017-12-01 09:57:19 +01:00
|
|
|
.attachment-link
|
2019-03-05 18:16:13 +01:00
|
|
|
= link_to commentaire.file_url, class: "button", target: "_blank", rel: "noopener", 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
|