messagerie: better format message dates

This commit is contained in:
Pierre de La Morinerie 2018-09-06 13:04:43 +00:00 committed by gregoirenovel
parent fe13871380
commit 211674435e
5 changed files with 57 additions and 1 deletions

View file

@ -7,7 +7,7 @@
- if ![user_email, commentaire.dossier.user.email, OLD_CONTACT_EMAIL, CONTACT_EMAIL].include?(commentaire.email)
%span.guest Invité
%span.date{ class: highlight_if_unseen_class(messagerie_seen_at, commentaire.created_at) }
= I18n.l(commentaire.created_at.localtime, format: '%d/%m/%Y à %H:%M ')
= commentaire_date(commentaire)
.rich-text= sanitize(commentaire.body)
- if commentaire.piece_justificative