wip(dossiers/messages/_message): poc destroy button with expected ACL support
This commit is contained in:
parent
f250a750fd
commit
b03dc6ad5d
4 changed files with 39 additions and 1 deletions
|
@ -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 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue