Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
08ecab60
Commit
08ecab60
authored
Jan 06, 2017
by
Jose Ivan Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed pipelines controller name to ci_cd_pipelines
parent
58110293
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
13 additions
and
13 deletions
+13
-13
app/assets/javascripts/dispatcher.js.es6
app/assets/javascripts/dispatcher.js.es6
+1
-1
app/controllers/projects/pipelines_settings_controller.rb
app/controllers/projects/pipelines_settings_controller.rb
+2
-2
app/controllers/projects/runners_controller.rb
app/controllers/projects/runners_controller.rb
+2
-2
app/controllers/projects/settings/ci_cd_pipelines_controller.rb
...ntrollers/projects/settings/ci_cd_pipelines_controller.rb
+2
-2
app/controllers/projects/variables_controller.rb
app/controllers/projects/variables_controller.rb
+4
-4
app/views/projects/runners/_shared_runners.html.haml
app/views/projects/runners/_shared_runners.html.haml
+1
-1
app/views/projects/settings/ci_cd_pipelines/show.html.haml
app/views/projects/settings/ci_cd_pipelines/show.html.haml
+0
-0
config/routes/project.rb
config/routes/project.rb
+1
-1
No files found.
app/assets/javascripts/dispatcher.js.es6
View file @
08ecab60
...
...
@@ -259,7 +259,7 @@
new gl.ProtectedBranchCreate();
new gl.ProtectedBranchEditList();
break;
case 'projects:
variables:index
':
case 'projects:
ci_cd_pipelines:show
':
new gl.ProjectVariables();
break;
case 'ci:lints:create':
...
...
app/controllers/projects/pipelines_settings_controller.rb
View file @
08ecab60
...
...
@@ -2,13 +2,13 @@ class Projects::PipelinesSettingsController < Projects::ApplicationController
before_action
:authorize_admin_pipeline!
def
show
redirect_to
namespace_project_settings_pipelines_path
(
@project
.
namespace
,
@project
)
redirect_to
namespace_project_settings_
ci_cd_
pipelines_path
(
@project
.
namespace
,
@project
)
end
def
update
if
@project
.
update_attributes
(
update_params
)
flash
[
:notice
]
=
"CI/CD Pipelines settings for '
#{
@project
.
name
}
' were successfully updated."
redirect_to
namespace_project_settings_pipelines_path
(
@project
.
namespace
,
@project
)
redirect_to
namespace_project_settings_
ci_cd_
pipelines_path
(
@project
.
namespace
,
@project
)
else
render
'show'
end
...
...
app/controllers/projects/runners_controller.rb
View file @
08ecab60
...
...
@@ -5,7 +5,7 @@ class Projects::RunnersController < Projects::ApplicationController
layout
'project_settings'
def
index
redirect_to
namespace_project_settings_pipelines_path
(
@project
.
namespace
,
@project
)
redirect_to
namespace_project_settings_
ci_cd_
pipelines_path
(
@project
.
namespace
,
@project
)
end
def
edit
...
...
@@ -49,7 +49,7 @@ class Projects::RunnersController < Projects::ApplicationController
def
toggle_shared_runners
project
.
toggle!
(
:shared_runners_enabled
)
redirect_to
namespace_project_settings_pipelines_path
(
@project
.
namespace
,
@project
)
redirect_to
namespace_project_settings_
ci_cd_
pipelines_path
(
@project
.
namespace
,
@project
)
end
protected
...
...
app/controllers/projects/settings/pipelines_controller.rb
→
app/controllers/projects/settings/
ci_cd_
pipelines_controller.rb
View file @
08ecab60
module
Projects
module
Settings
class
PipelinesController
<
Projects
::
ApplicationController
class
CiCd
PipelinesController
<
Projects
::
ApplicationController
before_action
:authorize_admin_pipeline!
def
show
# runners
@project_runners
=
@project
.
runners
.
ordered
...
...
app/controllers/projects/variables_controller.rb
View file @
08ecab60
...
...
@@ -4,7 +4,7 @@ class Projects::VariablesController < Projects::ApplicationController
layout
'project_settings'
def
index
redirect_to
namespace_project_settings_pipelines_path
(
project
.
namespace
,
project
)
redirect_to
namespace_project_settings_
ci_cd_
pipelines_path
(
project
.
namespace
,
project
)
end
def
show
...
...
@@ -15,7 +15,7 @@ class Projects::VariablesController < Projects::ApplicationController
@variable
=
@project
.
variables
.
find
(
params
[
:id
])
if
@variable
.
update_attributes
(
project_params
)
redirect_to
namespace_project_settings_pipelines_path
(
project
.
namespace
,
project
),
notice:
'Variable was successfully updated.'
redirect_to
namespace_project_settings_
ci_cd_
pipelines_path
(
project
.
namespace
,
project
),
notice:
'Variable was successfully updated.'
else
render
action:
"show"
end
...
...
@@ -25,7 +25,7 @@ class Projects::VariablesController < Projects::ApplicationController
@variable
=
Ci
::
Variable
.
new
(
project_params
)
if
@variable
.
valid?
&&
@project
.
variables
<<
@variable
redirect_to
namespace_project_settings_pipelines_path
(
project
.
namespace
,
project
),
notice:
'Variables were successfully updated.'
redirect_to
namespace_project_settings_
ci_cd_
pipelines_path
(
project
.
namespace
,
project
),
notice:
'Variables were successfully updated.'
else
render
action:
"index"
end
...
...
@@ -35,7 +35,7 @@ class Projects::VariablesController < Projects::ApplicationController
@key
=
@project
.
variables
.
find
(
params
[
:id
])
@key
.
destroy
redirect_to
namespace_project_settings_pipelines_path
(
project
.
namespace
,
project
),
notice:
'Variable was successfully removed.'
redirect_to
namespace_project_settings_
ci_cd_
pipelines_path
(
project
.
namespace
,
project
),
notice:
'Variable was successfully removed.'
end
private
...
...
app/views/projects/runners/_shared_runners.html.haml
View file @
08ecab60
...
...
@@ -22,7 +22,7 @@
-
else
%h4
.underlined-title
Available shared Runners :
#{
@shared_runners_count
}
%ul
.bordered-list.available-shared-runners
=
render
partial:
'runner'
,
collection:
@shared_runners
,
as: :runner
=
render
partial:
'
projects/runners/
runner'
,
collection:
@shared_runners
,
as: :runner
-
if
@shared_runners_count
>
10
.light
and
#{
@shared_runners_count
-
10
}
more...
app/views/projects/settings/pipelines/show.html.haml
→
app/views/projects/settings/
ci_cd_
pipelines/show.html.haml
View file @
08ecab60
File moved
config/routes/project.rb
View file @
08ecab60
...
...
@@ -315,8 +315,8 @@ constraints(ProjectUrlConstrainer.new) do
end
namespace
:settings
do
resource
:members
,
only:
[
:show
]
resource
:ci_cd_pipelines
,
only:
[
:show
]
resource
:integrations
,
only:
[
:show
]
resource
:pipelines
,
only:
[
:show
]
end
# Since both wiki and repository routing contains wildcard characters
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment