summaryrefslogtreecommitdiff
path: root/app/helpers/nav_helper.rb
diff options
context:
space:
mode:
authorAnnabel Dunstone <annabel.dunstone@gmail.com>2016-05-13 11:12:49 -0500
committerAnnabel Dunstone <annabel.dunstone@gmail.com>2016-05-13 11:12:49 -0500
commit16b1d3a34f665776bbdfca041326b9c2d569e59b (patch)
treea879ec89c2313c89b26bce951293d64c381f6684 /app/helpers/nav_helper.rb
parentc37006fa4f4a85c031d4916a618be39ac0b0d3ed (diff)
downloadgitlab-ce-16b1d3a34f665776bbdfca041326b9c2d569e59b.tar.gz
Fix mobile dropdown bug
Diffstat (limited to 'app/helpers/nav_helper.rb')
-rw-r--r--app/helpers/nav_helper.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/nav_helper.rb b/app/helpers/nav_helper.rb
index 3aa41030453..fbb799eecd3 100644
--- a/app/helpers/nav_helper.rb
+++ b/app/helpers/nav_helper.rb
@@ -43,4 +43,12 @@ module NavHelper
class_name += " with-horizontal-nav" if defined?(nav) && nav
class_name
end
+
+ def layout_nav_class
+ "page-with-layout-nav" if defined?(nav) && nav
+ end
+
+ def layout_dropdown_class
+ "controls-dropdown-visible" if current_user
+ end
end