Commit 373411d1 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Corrected code style and titles

parent bc7c6c68
...@@ -4,8 +4,8 @@ module Projects ...@@ -4,8 +4,8 @@ module Projects
include ServiceParams include ServiceParams
before_action :authorize_admin_project! before_action :authorize_admin_project!
layout "project_settings" layout "project_settings"
def show def show
@hooks = @project.hooks @hooks = @project.hooks
@hook = ProjectHook.new @hook = ProjectHook.new
......
...@@ -211,6 +211,7 @@ module GitlabRoutingHelper ...@@ -211,6 +211,7 @@ module GitlabRoutingHelper
def project_settings_integrations_path(project, *args) def project_settings_integrations_path(project, *args)
namespace_project_settings_integrations_path(project.namespace, project, *args) namespace_project_settings_integrations_path(project.namespace, project, *args)
end end
def project_settings_members_path(project, *args) def project_settings_members_path(project, *args)
namespace_project_settings_members_path(project.namespace, project, *args) namespace_project_settings_members_path(project.namespace, project, *args)
end end
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
%span %span
Deploy Keys Deploy Keys
= nav_link(controller: :integrations) do = nav_link(controller: :integrations) do
= link_to namespace_project_settings_integrations_path(@project.namespace, @project), title: 'Webhooks' do = link_to namespace_project_settings_integrations_path(@project.namespace, @project), title: 'Integrations' do
%span %span
Integrations Integrations
= nav_link(controller: :protected_branches) do = nav_link(controller: :protected_branches) do
......
- context_title = @project ? 'project' : 'group'
.row.prepend-top-default .row.prepend-top-default
.col-lg-3 .col-lg-3
%h4.prepend-top-0 %h4.prepend-top-0
......
require('spec_helper') require 'spec_helper'
describe Projects::Settings::IntegrationsController do describe Projects::Settings::IntegrationsController do
let(:project) { create(:project, :public) } let(:project) { create(:project, :public) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment