2018-08-16 17:22:35 +02:00
|
|
|
.messagerie.container
|
|
|
|
%ul.messages-list
|
2019-06-25 17:12:44 +02:00
|
|
|
- dossier.commentaires.with_attached_piece_jointe.each do |commentaire|
|
2022-04-19 09:40:59 +02:00
|
|
|
%li.message{ class: commentaire_is_from_me_class(commentaire, connected_user), id: dom_id(commentaire) }
|
2022-04-25 12:41:01 +02:00
|
|
|
= render Dossiers::MessageComponent.new(commentaire: commentaire, connected_user: connected_user, messagerie_seen_at: messagerie_seen_at, show_reply_button: show_reply_button(commentaire, connected_user))
|
2018-08-16 17:22:35 +02:00
|
|
|
|
2019-07-01 18:14:02 +02:00
|
|
|
- if dossier.messagerie_available?
|
2021-08-11 19:02:12 +02:00
|
|
|
= render partial: "shared/dossiers/messages/form", locals: { commentaire: new_commentaire, form_url: form_url, dossier: dossier }
|
2019-07-01 18:14:02 +02:00
|
|
|
- else
|
2019-11-13 18:09:17 +01:00
|
|
|
= render partial: "shared/dossiers/messages/messagerie_disabled", locals: { service: dossier.procedure.service, dossier: dossier }
|