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-07-16 12:11:24 +02:00
|
|
|
.message-extras.flex.justify-start
|
|
|
|
- if commentaire.piece_jointe.attached?
|
|
|
|
.attachment-link
|
|
|
|
= render partial: "shared/attachment/show", locals: { attachment: commentaire.piece_jointe.attachment }
|
|
|
|
- elsif commentaire.file.present?
|
|
|
|
.attachment-link
|
|
|
|
= link_to commentaire.file_url, class: "button", target: "_blank", rel: "noopener", title: "Télécharger" do
|
|
|
|
%span.icon.attachment
|
|
|
|
= commentaire.file_identifier
|
|
|
|
|
|
|
|
- if show_reply_button
|
|
|
|
= button_tag type: 'button', class: 'button small message-answer-button', onclick: 'document.querySelector("#commentaire_body").focus()' do
|
|
|
|
%span.icon.reply
|
|
|
|
Répondre
|