feat(rc): first stable

This commit is contained in:
Martin 2021-11-15 13:53:32 +01:00
parent 8b931a57d4
commit 3b78a9d81a
7 changed files with 30 additions and 20 deletions

View file

@ -11,8 +11,10 @@
.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.sent_by?(connected_user) && commentaire.sent_by_instructeur? && commentaire.deleted_at.nil?
= button_to instructeur_commentaire_path(commentaire.dossier.procedure, commentaire.dossier, commentaire), method: :delete do
Supprimer
- if commentaire.piece_jointe.attached?
.attachment-link
= render partial: "shared/attachment/show", locals: { attachment: commentaire.piece_jointe.attachment }