summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-05-16 12:21:12 -0500
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-05-16 12:21:12 -0500
commit29211b48d785d18c3af59a11e07abaf820086701 (patch)
tree829d6cc0135a2a5dbc238ccb981855248e4a814a /app/helpers
parent78a67fc48dab434b43a080e5b15491963656661a (diff)
downloadgitlab-ce-29211b48d785d18c3af59a11e07abaf820086701.tar.gz
Implement new horizontal navigation to project pages
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/tab_helper.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/helpers/tab_helper.rb b/app/helpers/tab_helper.rb
index 96a83671009..9f639d3461d 100644
--- a/app/helpers/tab_helper.rb
+++ b/app/helpers/tab_helper.rb
@@ -95,7 +95,9 @@ module TabHelper
end
def project_tab_class
- return "active" if current_page?(controller: "/projects", action: :edit, id: @project)
+ if controller.controller_path =~ /\Aprojects/
+ return 'active'
+ end
if ['services', 'hooks', 'deploy_keys', 'protected_branches'].include? controller.controller_name
"active"