NewDesign: add guest label to message

This commit is contained in:
Simon Lehericey 2017-07-19 11:23:31 +02:00 committed by Mathieu Magnin
parent 983c17fdcf
commit 3a8e84b128
2 changed files with 6 additions and 0 deletions

View file

@ -15,9 +15,13 @@
font-weight: bold;
}
.guest,
.date {
font-size: 12px;
color: $grey;
}
.date {
float: right;
}
}

View file

@ -7,5 +7,7 @@
%h2
%span.mail
= render partial: 'commentaire_issuer', locals: { commentaire: commentaire, current_gestionnaire: current_gestionnaire }
- if ![current_gestionnaire.email, @dossier.user.email, 'contact@tps.apientreprise.fr'].include?(commentaire.email)
%span.guest Invité
%span.date= I18n.l(commentaire.created_at.localtime, format: '%d/%m/%y')
%p= sanitize(commentaire.body)