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:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-05-16 20:21:12 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-05-16 20:21:12 +0300
commit29211b48d785d18c3af59a11e07abaf820086701 (patch)
tree829d6cc0135a2a5dbc238ccb981855248e4a814a /app/helpers/tab_helper.rb
parent78a67fc48dab434b43a080e5b15491963656661a (diff)
Implement new horizontal navigation to project pages
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/helpers/tab_helper.rb')
-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"