demarches-normaliennes/app/views/shared/dossiers/messages/_message_icon.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

7 lines
265 B
Text

- if commentaire.sent_by_system?
= image_tag('icons/mail.svg', class: 'person-icon')
- elsif commentaire.sent_by?(connected_user)
= image_tag('icons/account-circle.svg', class: 'person-icon')
- else
= image_tag('icons/blue-person.svg', class: 'person-icon')