diff options
author | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-06-26 18:28:30 +0000 |
---|---|---|
committer | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-06-26 18:28:30 +0000 |
commit | 439816529e545001fd7537f05fb95c080f197bd7 (patch) | |
tree | aa6b90391452648a7e57321995388745cd37482c /app/helpers | |
parent | 4fffc320d9c224931733a58646741c82b8b0f30f (diff) | |
parent | 32e22d138a87bb1c52df31d8455e9d324754cb67 (diff) | |
download | gitlab-ce-439816529e545001fd7537f05fb95c080f197bd7.tar.gz |
Merge branch 'experimental-top-nav' into 'master'
Top navigation redesign
Closes #34022, #34035, #34037, #34038, and #34021
See merge request !12214
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index a3b243fccb7..dc7ff78f3df 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -300,4 +300,12 @@ module ApplicationHelper "https://www.twitter.com/#{name}" end end + + def can_toggle_new_nav? + Rails.env.development? + end + + def show_new_nav? + cookies["new_nav"] == "true" + end end |