summaryrefslogtreecommitdiff
path: root/app/helpers/tab_helper.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-13 21:06:45 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-13 21:06:45 +0000
commitb42f312df5aee0f1b832b69171e9d1cf92eb7416 (patch)
treecf0f4e59d45688723d3d534ddf13564fa10d3050 /app/helpers/tab_helper.rb
parent57e3d49fc0fb99f42ac178761fc6232715734020 (diff)
downloadgitlab-ce-b42f312df5aee0f1b832b69171e9d1cf92eb7416.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/tab_helper.rb')
-rw-r--r--app/helpers/tab_helper.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/app/helpers/tab_helper.rb b/app/helpers/tab_helper.rb
index 53739cb63e3..58edb327be0 100644
--- a/app/helpers/tab_helper.rb
+++ b/app/helpers/tab_helper.rb
@@ -108,16 +108,6 @@ module TabHelper
current_controller?(c) && current_action?(a)
end
- def project_tab_class
- if controller.controller_path.start_with?('projects')
- return 'active'
- end
-
- if %w(services hooks deploy_keys protected_branches).include? controller.controller_name
- "active"
- end
- end
-
def branches_tab_class
if current_controller?(:protected_branches) ||
current_controller?(:branches) ||
@@ -125,14 +115,6 @@ module TabHelper
'active'
end
end
-
- def profile_tab_class
- if controller.controller_path.start_with?('profiles')
- return 'active'
- end
-
- 'active' if current_controller?('oauth/applications')
- end
end
TabHelper.prepend_if_ee('EE::TabHelper')