From 02ce392ff350fbbb13bc8c7a2fff0d220e003883 Mon Sep 17 00:00:00 2001 From: JC Date: Mon, 26 Dec 2016 17:24:40 +0100 Subject: [PATCH] No notifications result in displayed message --- ...l_backoffice_dossierscontroller_show.html.haml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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