From 221ed952d191a008c63c489962a78a4a1641e34b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chai=CC=88b=20Martinez?= Date: Tue, 12 Feb 2019 16:18:29 +0100 Subject: [PATCH] Redesign admin roles menu --- app/assets/stylesheets/switch_menu.scss | 16 ++++++++-------- .../_switch_devise_profile_module.html.haml | 13 ++++++------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/app/assets/stylesheets/switch_menu.scss b/app/assets/stylesheets/switch_menu.scss index adf6b15df..8333eef90 100644 --- a/app/assets/stylesheets/switch_menu.scss +++ b/app/assets/stylesheets/switch_menu.scss @@ -2,16 +2,16 @@ position: fixed; bottom: 10px; z-index: 300; - color:#ffffff; + color: #FFFFFF; list-style: none; - text-decoration : none; + text-decoration: none; padding-left: 20px; - } -#switch-menu a, #switch-menu a:link , #switch-menu a:visited , #switch-menu a:hover { - text-decoration : none; - color:#ffffff; - +#switch-menu a, +#switch-menu a:link, +#switch-menu a:visited, +#switch-menu a:hover { + text-decoration: none; + color: #FFFFFF; } - diff --git a/app/views/layouts/_switch_devise_profile_module.html.haml b/app/views/layouts/_switch_devise_profile_module.html.haml index 6cbcdbad1..02f2678a2 100644 --- a/app/views/layouts/_switch_devise_profile_module.html.haml +++ b/app/views/layouts/_switch_devise_profile_module.html.haml @@ -1,15 +1,14 @@ - if SwitchDeviseProfileService.new(warden).multiple_devise_profile_connect? %ul#switch-menu - %li Changer de rôle... + %li + Changer de rôle - if user_signed_in? %li - = link_to(dossiers_path, id: :menu_item_procedure, title:'Aller dans votre espace usager. Vous pourrez revenir ici ensuite') do + = link_to(dossiers_path, id: :menu_item_procedure, title: 'Aller dans votre espace usager. Vous pourrez revenir ici ensuite') do %i.fa.fa-users -   - Usager +   Usager - if gestionnaire_signed_in? %li - = link_to(gestionnaire_procedures_path, title:'Aller dans votre espace instructeur. Vous pourrez revenir ici ensuite.') do + = link_to(gestionnaire_procedures_path, title: 'Aller dans votre espace instructeur. Vous pourrez revenir ici ensuite.') do %i.fa.fa-user -   - Instructeur \ No newline at end of file +   Instructeur