Prepend notification message for champs and piece_justificative

This commit is contained in:
JC 2016-12-26 17:36:02 +01:00
parent 153c472ef6
commit 45d5177d52

View file

@ -38,5 +38,11 @@
- @facade.dossier.notifications.limit(5).each do |notification|
.notification
.updated-at= notification.updated_at.strftime('%d/%m/%Y %H:%M')
- if ['champs', 'piece_justificative'].include?(notification.type_notif)
- if notification.liste.size > 1
.type= "Plusieurs attributs ont été changés, dont: #{notification.liste.last}"
- else
.type= "Un attribut à été changé: #{notification.liste.last}"
- else
.type= notification.liste.last
.split-hr