No notifications result in displayed message

This commit is contained in:
JC 2016-12-26 17:24:40 +01:00
parent 42915979da
commit 02ce392ff3

View file

@ -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