demarches-normaliennes/app/views/shared/dossiers/messages/_message_issuer.html.haml
Nicolas Bouilleaud 3f439ac07a Add Commentaire.is_sent_by_system? and .is_sent_by(someone)
And use it in CommentaireHelper and in the _message_icon and _message_issuer partials
2019-07-08 16:06:44 +02:00

6 lines
143 B
Text

- if commentaire.sent_by_system?
Email automatique
- elsif commentaire.sent_by?(connected_user)
Vous
- else
= commentaire.redacted_email