No notifications result in displayed message
This commit is contained in:
parent
42915979da
commit
02ce392ff3
1 changed files with 9 additions and 6 deletions
|
@ -31,9 +31,12 @@
|
|||
%div.dossier-state= @facade.dossier.display_state
|
||||
%div.split-hr-left
|
||||
%div.notifications
|
||||
%i.fa.fa-bell-o
|
||||
- @facade.dossier.notifications.limit(5).each do |notification|
|
||||
.notification
|
||||
.updated-at= notification.updated_at.strftime('%d/%m/%Y %H:%M')
|
||||
.type= notification.liste.last
|
||||
.split-hr
|
||||
- if @facade.dossier.notifications.empty?
|
||||
= "Aucune notification pour le moment."
|
||||
- else
|
||||
%i.fa.fa-bell-o
|
||||
- @facade.dossier.notifications.limit(5).each do |notification|
|
||||
.notification
|
||||
.updated-at= notification.updated_at.strftime('%d/%m/%Y %H:%M')
|
||||
.type= notification.liste.last
|
||||
.split-hr
|
||||
|
|
Loading…
Reference in a new issue