2018-09-17 14:43:21 +02:00
|
|
|
- latest_message = dossier.commentaires.last
|
|
|
|
- if latest_message.present?
|
|
|
|
.latest-message-section
|
2021-04-17 18:49:00 +02:00
|
|
|
%h3.tab-title= t('views.users.dossiers.show.latest_message.latest_message')
|
2018-09-17 14:43:21 +02:00
|
|
|
|
2023-12-04 14:47:05 +01:00
|
|
|
.message.fr-background-alt--grey
|
2022-04-25 12:41:01 +02:00
|
|
|
= render Dossiers::MessageComponent.new(commentaire: latest_message, connected_user: current_user)
|
2018-09-17 14:43:21 +02:00
|
|
|
|
2022-10-06 19:36:03 +02:00
|
|
|
= link_to messagerie_dossier_url(dossier, anchor: 'new_commentaire'), class: 'fr-btn fr-btn--icon-left fr-icon-discuss-line' do
|
2019-07-16 12:24:16 +02:00
|
|
|
= commentaire_answer_action(latest_message, current_user)
|