Merge pull request #2189 from betagouv/fix_2185_last_message

[fix #2185] Messagerie: best commit ever
This commit is contained in:
LeSim 2018-07-02 16:16:07 +02:00 committed by GitHub
commit 779328628e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@
= render partial: 'dossiers/commentaires/form', locals: { dossier_facade: @facade }
.last-commentaire.clearfix.hidden-print
- if last_comment = dossier_facade.commentaires.first
- if last_comment = dossier_facade.commentaires.last
%div
DERNIER MESSAGE
= render partial: 'dossiers/commentaires/commentaire', object: last_comment