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:
authorPhil Hughes <me@iamphill.com>2017-06-16 13:31:39 +0300
committerPhil Hughes <me@iamphill.com>2017-06-21 16:45:23 +0300
commitc5f25f6550a3563507e39b1e5eea5df84a8bba2f (patch)
tree09d80b24319559919470f0db51c36f79019b0c8d /app/helpers/application_helper.rb
parent78ee24ba53a4a44d829613495ec0d5f1bbb5a9ee (diff)
Top navigation redesign
Start of the new navigation by redesigning just the top navigation menu. This is only shown when a cookie is set. Part of #32794
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index a3b243fccb7..46be72ad81c 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -300,4 +300,8 @@ module ApplicationHelper
"https://www.twitter.com/#{name}"
end
end
+
+ def show_new_nav?
+ cookies["new_nav"] == "true"
+ end
end