diff options
author | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-08-10 15:13:38 -0500 |
---|---|---|
committer | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-09-05 13:19:07 -0700 |
commit | f76e8c6536a3af4c9051ff056b95c2d7f2dd7b7e (patch) | |
tree | 049c9eb512adbd79f3fd61d94a29ad87b1abda2e /app/helpers/nav_helper.rb | |
parent | b5a06c609915a5321a5f35b7915dbb6744a54285 (diff) | |
download | gitlab-ce-f76e8c6536a3af4c9051ff056b95c2d7f2dd7b7e.tar.gz |
Top navigation updates
Diffstat (limited to 'app/helpers/nav_helper.rb')
-rw-r--r-- | app/helpers/nav_helper.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/app/helpers/nav_helper.rb b/app/helpers/nav_helper.rb index b63b3b70903..73b3386fe9c 100644 --- a/app/helpers/nav_helper.rb +++ b/app/helpers/nav_helper.rb @@ -38,7 +38,7 @@ module NavHelper end def layout_nav_class - return [] if show_new_nav? + return 'page-with-new-nav' if show_new_nav? class_names = [] class_names << 'page-with-layout-nav' if defined?(nav) && nav @@ -50,4 +50,12 @@ module NavHelper def nav_control_class "nav-control" if current_user end + + def user_dropdown_class + class_names = [] + class_names << 'header-user-dropdown-toggle' + class_names << 'impersonated-user' if session[:impersonator_id] + + class_names + end end |