diff --git a/app/views/layouts/left_panels/_left_panel_backoffice_dossierscontroller_show.html.haml b/app/views/layouts/left_panels/_left_panel_backoffice_dossierscontroller_show.html.haml index 6d3e227b1..6e101ba59 100644 --- a/app/views/layouts/left_panels/_left_panel_backoffice_dossierscontroller_show.html.haml +++ b/app/views/layouts/left_panels/_left_panel_backoffice_dossierscontroller_show.html.haml @@ -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