Prepend notification message for champs and piece_justificative
This commit is contained in:
parent
153c472ef6
commit
45d5177d52
1 changed files with 7 additions and 1 deletions
|
@ -38,5 +38,11 @@
|
||||||
- @facade.dossier.notifications.limit(5).each do |notification|
|
- @facade.dossier.notifications.limit(5).each do |notification|
|
||||||
.notification
|
.notification
|
||||||
.updated-at= notification.updated_at.strftime('%d/%m/%Y %H:%M')
|
.updated-at= notification.updated_at.strftime('%d/%m/%Y %H:%M')
|
||||||
.type= notification.liste.last
|
- 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
|
.split-hr
|
||||||
|
|
Loading…
Add table
Reference in a new issue