Fix 500 error on services page. Fixed active project tab when on services
This commit is contained in:
parent
cc0295b789
commit
674efd38d8
2 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,7 @@ module TabHelper
|
|||
return "active" if current_page?(controller: "projects", action: action, id: @project)
|
||||
end
|
||||
|
||||
if ['snippets', 'hooks', 'deploy_keys', 'team_members'].include? controller.controller_name
|
||||
if ['snippets', 'services', 'hooks', 'deploy_keys', 'team_members'].include? controller.controller_name
|
||||
"active"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
GitLab CI
|
||||
%small Continuous integration server from GitLab
|
||||
.right
|
||||
- if @gitlab_ci_service.active
|
||||
- if @gitlab_ci_service.try(:active)
|
||||
%small.cgreen Enabled
|
||||
- else
|
||||
%small.cgray Disabled
|
||||
|
|
Loading…
Reference in a new issue