2018-09-17 14:43:21 +02:00
|
|
|
- latest_message = dossier.commentaires.last
|
|
|
|
- if latest_message.present?
|
|
|
|
.latest-message-section
|
|
|
|
%h3.tab-title Dernier message
|
|
|
|
|
|
|
|
.message.inverted-background
|
2019-07-16 12:11:24 +02:00
|
|
|
= render partial: "shared/dossiers/messages/message", locals: { commentaire: latest_message, connected_user: current_user, messagerie_seen_at: nil, show_reply_button: false }
|
2018-09-17 14:43:21 +02:00
|
|
|
|
2019-07-16 12:24:16 +02:00
|
|
|
= link_to messagerie_dossier_url(dossier, anchor: 'new_commentaire'), class: 'button send' do
|
|
|
|
%span.icon.reply
|
|
|
|
= commentaire_answer_action(latest_message, current_user)
|