10 lines
516 B
Text
10 lines
516 B
Text
- latest_message = dossier.commentaires.last
|
|
- if latest_message.present?
|
|
.latest-message-section
|
|
%h3.tab-title= t('views.users.dossiers.show.latest_message.latest_message')
|
|
|
|
.message.inverted-background
|
|
= render Dossiers::MessageComponent.new(commentaire: latest_message, connected_user: current_user)
|
|
|
|
= link_to messagerie_dossier_url(dossier, anchor: 'new_commentaire'), class: 'fr-btn fr-btn--icon-left fr-icon-discuss-line' do
|
|
= commentaire_answer_action(latest_message, current_user)
|