2018-08-16 17:22:08 +02:00
|
|
|
= render partial: 'shared/dossiers/messages/message_icon', locals: { commentaire: commentaire, user_email: user_email }
|
2017-11-28 11:37:42 +01:00
|
|
|
|
|
|
|
.width-100
|
|
|
|
%h2
|
|
|
|
%span.mail
|
2018-08-16 17:22:08 +02:00
|
|
|
= render partial: 'shared/dossiers/messages/message_issuer', locals: { commentaire: commentaire, user_email: user_email }
|
|
|
|
- if ![user_email, commentaire.dossier.user.email, OLD_CONTACT_EMAIL, CONTACT_EMAIL].include?(commentaire.email)
|
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) }
|
|
|
|
= I18n.l(commentaire.created_at.localtime, format: '%d/%m/%Y à %H:%M ')
|
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
|