10 lines
802 B
Text
10 lines
802 B
Text
.messagerie.container
|
|
%ul.messages-list{ data: { controller: 'scroll-to' } }
|
|
- dossier.preloaded_commentaires.each do |commentaire|
|
|
%li.message.fr-background-alt--grey{ class: commentaire_is_from_me_class(commentaire, connected_user), id: dom_id(commentaire) }
|
|
= 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))
|
|
|
|
- if dossier.messagerie_available?
|
|
= render partial: "shared/dossiers/messages/form", locals: { commentaire: new_commentaire, form_url: form_url, dossier: dossier }
|
|
- else
|
|
= render partial: "shared/dossiers/messages/messagerie_disabled", locals: { service: dossier.procedure.service, dossier: dossier }
|