demarches-normaliennes/app/views/users/dossiers/show/_latest_message.html.haml
2021-07-20 14:18:20 +02:00

11 lines
581 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 partial: "shared/dossiers/messages/message", locals: { commentaire: latest_message, connected_user: current_user, messagerie_seen_at: nil, show_reply_button: false }
= link_to messagerie_dossier_url(dossier, anchor: 'new_commentaire'), class: 'button send' do
%span.icon.reply
= commentaire_answer_action(latest_message, current_user)