wip(dossiers/messages/_message): poc destroy button with expected ACL support

This commit is contained in:
Martin 2021-11-15 11:30:41 +01:00
parent f250a750fd
commit b03dc6ad5d
4 changed files with 39 additions and 1 deletions

View file

@ -11,6 +11,8 @@
.rich-text= pretty_commentaire(commentaire)
.message-extras.flex.justify-start
- if commentaire.sent_by?(connected_user) && commentaire.sent_by_instructeur?
%div{"data-test-delete-id" => 1} Suppr
- if commentaire.piece_jointe.attached?
.attachment-link
= render partial: "shared/attachment/show", locals: { attachment: commentaire.piece_jointe.attachment }