demarches-normaliennes/app/views/shared/dossiers/messages/_message.html.haml

24 lines
1.2 KiB
Text
Raw Normal View History

= render partial: 'shared/dossiers/messages/message_icon', locals: { commentaire: commentaire, connected_user: connected_user }
.width-100
%h2
%span.mail
= render partial: 'shared/dossiers/messages/message_issuer', locals: { commentaire: commentaire, connected_user: connected_user }
- if commentaire_is_from_guest(commentaire)
2021-04-17 18:49:00 +02:00
%span.guest= t('views.shared.dossiers.messages.message.guest')
%span.date{ class: highlight_if_unseen_class(messagerie_seen_at, commentaire.created_at) }
= commentaire_date(commentaire)
2020-08-10 16:02:11 +02:00
.rich-text= pretty_commentaire(commentaire)
.message-extras.flex.justify-start
- if commentaire.sent_by?(connected_user) && commentaire.sent_by_instructeur?
%div{"data-test-delete-id" => 1} Suppr
- if commentaire.piece_jointe.attached?
.attachment-link
= render partial: "shared/attachment/show", locals: { attachment: commentaire.piece_jointe.attachment }
- if show_reply_button
= button_tag type: 'button', class: 'button small message-answer-button', onclick: 'document.querySelector("#commentaire_body").focus()' do
%span.icon.reply
2021-04-17 18:49:00 +02:00
= t('views.shared.dossiers.messages.message.reply')