From 983cec659bbcb21f650df2648f94fc95b7bfeea9 Mon Sep 17 00:00:00 2001 From: JC Date: Mon, 2 Jan 2017 14:39:27 +0100 Subject: [PATCH] =?UTF-8?q?Adding=20dossiers=20suivis=20modifi=C3=A9s=20to?= =?UTF-8?q?=20tease=20informations=20about=20new=20notifications=20for=20g?= =?UTF-8?q?estionnaire?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/assets/stylesheets/left_pannel.scss | 2 +- ...left_panel_backoffice_dossierscontroller_index.html.haml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/left_pannel.scss b/app/assets/stylesheets/left_pannel.scss index f9b412f2c..16b1bfc00 100644 --- a/app/assets/stylesheets/left_pannel.scss +++ b/app/assets/stylesheets/left_pannel.scss @@ -27,7 +27,7 @@ .dossiers-en-cours, .en-cours { margin-top: 20px; } - .dossiers-en-cours, .nouveaux-dossiers, .en-cours { + .dossiers-en-cours, .nouveaux-dossiers, .nouvelles-notifications, .en-cours { line-height: initial; text-align: center; margin-right: 10px; diff --git a/app/views/layouts/left_panels/_left_panel_backoffice_dossierscontroller_index.html.haml b/app/views/layouts/left_panels/_left_panel_backoffice_dossierscontroller_index.html.haml index 70a81eddc..33231c65b 100644 --- a/app/views/layouts/left_panels/_left_panel_backoffice_dossierscontroller_index.html.haml +++ b/app/views/layouts/left_panels/_left_panel_backoffice_dossierscontroller_index.html.haml @@ -5,6 +5,12 @@ %div.nouveaux-dossiers = @facade_data_view.total_new_dossier NOUVEAUX DOSSIERS + %div.nouvelles-notifications + - new_notifications = @facade_data_view.unread_notifications.count + - if new_notifications > 1 + = "#{new_notifications} DOSSIERS MODIFIÉS" + - elsif new_notifications == 1 + 1 DOSSIER MODIFIÉ %div#action-block