demarches-normaliennes/app/views/users/dossiers/show/_latest_message.html.haml

12 lines
505 B
Text
Raw Normal View History

- 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')
.message.inverted-background
= render Dossiers::MessageComponent.new(commentaire: latest_message, connected_user: current_user)
= link_to messagerie_dossier_url(dossier, anchor: 'new_commentaire'), class: 'button send' do
%span.icon.reply
= commentaire_answer_action(latest_message, current_user)