From 2e2424ec3fb055d34a9eda379e6f75fffcf4c27d 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] Minor html/css change --- app/assets/stylesheets/switch_menu.scss | 13 ++++++- .../_switch_devise_profile_module.html.haml | 38 +++++++------------ 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/app/assets/stylesheets/switch_menu.scss b/app/assets/stylesheets/switch_menu.scss index e9c18733c..adf6b15df 100644 --- a/app/assets/stylesheets/switch_menu.scss +++ b/app/assets/stylesheets/switch_menu.scss @@ -1,6 +1,17 @@ #switch-menu { position: fixed; - left: 10px; bottom: 10px; z-index: 300; + color:#ffffff; + list-style: 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; + +} + diff --git a/app/views/layouts/_switch_devise_profile_module.html.haml b/app/views/layouts/_switch_devise_profile_module.html.haml index 2b13779b5..e70e11ffa 100644 --- a/app/views/layouts/_switch_devise_profile_module.html.haml +++ b/app/views/layouts/_switch_devise_profile_module.html.haml @@ -1,25 +1,15 @@ - if SwitchDeviseProfileService.new(warden).multiple_devise_profile_connect? - #switch-menu.dropdown.dropup - %button.btn.btn-default.dropdown-toggle{ type: :button, 'data-toggle' => 'dropdown', 'aria-haspopup' => true, 'aria-expanded' => false } - %i.fa.fa-toggle-on - %span.caret - %ul.dropdown-menu.dropdown-menu-left - - if user_signed_in? - %li - = link_to(dossiers_path, id: :menu_item_procedure) do - %i.fa.fa-user -   - Usager - - if gestionnaire_signed_in? - %li - = link_to(gestionnaire_procedures_path) do - %i.fa.fa-user -   - Instructeur - - - if administrateur_signed_in? - %li - = link_to(admin_procedures_path) do - %i.fa.fa-user -   - Administrateur + %ul#switch-menu + %li Tester en tant que... + - 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 + %i.fa.fa-users +   + Usager + - if gestionnaire_signed_in? + %li + = link_to(gestionnaire_procedures_path, title:'Aller dans votre espace instructeur. Vous pourrez revenir ici ensuite.') do + %i.fa.fa-user +   + Instructeur