From 5915a2b7d5f7b8b0dbc35b9d2670187dff82b459 Mon Sep 17 00:00:00 2001 From: JC Date: Wed, 7 Dec 2016 16:27:43 +0100 Subject: [PATCH] Delete pop menu for sign_out, also count dossiers on user side --- app/assets/javascripts/default_data_block.js | 8 -------- .../_left_panel_users_dossierscontroller_index.html.haml | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/app/assets/javascripts/default_data_block.js b/app/assets/javascripts/default_data_block.js index 716557896..1ff875ddf 100644 --- a/app/assets/javascripts/default_data_block.js +++ b/app/assets/javascripts/default_data_block.js @@ -10,14 +10,6 @@ function init_default_data_block() { toggle_default_data_bloc(this, 400); }); - $('#sign_out').hover(function () { - $(this).find('#credentials').toggle(); - }); - - $('#sign_out').mouseout(function() { - $(this).find('credentials').toggle(); - }); - $('.new-action').click(function () { var messages_block = $(this).parents().closest('.default_data_block').find('.title') toggle_default_data_bloc(messages_block, 400); diff --git a/app/views/layouts/left_panels/_left_panel_users_dossierscontroller_index.html.haml b/app/views/layouts/left_panels/_left_panel_users_dossierscontroller_index.html.haml index 74eadad96..bd9a7826c 100644 --- a/app/views/layouts/left_panels/_left_panel_users_dossierscontroller_index.html.haml +++ b/app/views/layouts/left_panels/_left_panel_users_dossierscontroller_index.html.haml @@ -1,6 +1,6 @@ %div#first-block %div.en-cours - = dossier_count = @dossiers_list_facade.dossiers_to_display.count + = dossier_count = current_user.dossiers.count = ("Dossier".pluralize(dossier_count)).upcase %br = "EN COURS"