2017-12-18 13:57:27 +01:00
|
|
|
= render partial: 'new_gestionnaire/shared/messages/message_icon', locals: { commentaire: commentaire, current_gestionnaire: current_gestionnaire }
|
2017-11-28 11:37:42 +01:00
|
|
|
|
|
|
|
.width-100
|
|
|
|
%h2
|
|
|
|
%span.mail
|
2017-12-18 13:57:27 +01:00
|
|
|
= render partial: 'new_gestionnaire/shared/messages/message_issuer', locals: { commentaire: commentaire, current_gestionnaire: current_gestionnaire }
|
2018-02-28 17:37:44 +01:00
|
|
|
- if ![current_gestionnaire.email, commentaire.dossier.user.email, 'contact@tps.apientreprise.fr', 'contact@demarches-simplifiees.fr'].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
|