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-21 16:45:05 +0300
committerPhil Hughes <me@iamphill.com>2017-06-21 16:45:23 +0300
commit79a842c53d77e9b5b95c538372ac263c28864659 (patch)
tree0b13aab8a71e277527e4782678bdd75806236d90 /app/helpers/application_helper.rb
parent1c2547d2a96fc29e7b009e95d69d17c637d11a0a (diff)
fixed scss-lint job
only display the toggle setting in development env for now
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 46be72ad81c..dc7ff78f3df 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -301,6 +301,10 @@ module ApplicationHelper
end
end
+ def can_toggle_new_nav?
+ Rails.env.development?
+ end
+
def show_new_nav?
cookies["new_nav"] == "true"
end