Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2017-08-10 23:13:38 +0300
committerAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2017-09-05 23:19:07 +0300
commitf76e8c6536a3af4c9051ff056b95c2d7f2dd7b7e (patch)
tree049c9eb512adbd79f3fd61d94a29ad87b1abda2e /app/helpers/nav_helper.rb
parentb5a06c609915a5321a5f35b7915dbb6744a54285 (diff)
Top navigation updates
Diffstat (limited to 'app/helpers/nav_helper.rb')
-rw-r--r--app/helpers/nav_helper.rb10
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