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
33b660be
Commit
33b660be
authored
May 07, 2018
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support anchors for Groups::RunnersController
parent
0c57782c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
app/controllers/groups/runners_controller.rb
app/controllers/groups/runners_controller.rb
+5
-5
No files found.
app/controllers/groups/runners_controller.rb
View file @
33b660be
...
@@ -23,22 +23,22 @@ class Groups::RunnersController < Groups::ApplicationController
...
@@ -23,22 +23,22 @@ class Groups::RunnersController < Groups::ApplicationController
def
destroy
def
destroy
@runner
.
destroy
@runner
.
destroy
redirect_to
group_settings_ci_cd_path
(
@group
),
status:
302
redirect_to
group_settings_ci_cd_path
(
@group
,
anchor:
'runners-settings'
),
status:
302
end
end
def
resume
def
resume
if
Ci
::
UpdateRunnerService
.
new
(
@runner
).
update
(
active:
true
)
if
Ci
::
UpdateRunnerService
.
new
(
@runner
).
update
(
active:
true
)
redirect_to
group_settings_ci_cd_path
(
@group
),
notice:
'Runner was successfully updated.'
redirect_to
group_settings_ci_cd_path
(
@group
,
anchor:
'runners-settings'
),
notice:
'Runner was successfully updated.'
else
else
redirect_to
group_settings_ci_cd_path
(
@group
),
alert:
'Runner was not updated.'
redirect_to
group_settings_ci_cd_path
(
@group
,
anchor:
'runners-settings'
),
alert:
'Runner was not updated.'
end
end
end
end
def
pause
def
pause
if
Ci
::
UpdateRunnerService
.
new
(
@runner
).
update
(
active:
false
)
if
Ci
::
UpdateRunnerService
.
new
(
@runner
).
update
(
active:
false
)
redirect_to
group_settings_ci_cd_path
(
@group
),
notice:
'Runner was successfully updated.'
redirect_to
group_settings_ci_cd_path
(
@group
,
anchor:
'runners-settings'
),
notice:
'Runner was successfully updated.'
else
else
redirect_to
group_settings_ci_cd_path
(
@group
),
alert:
'Runner was not updated.'
redirect_to
group_settings_ci_cd_path
(
@group
,
anchor:
'runners-settings'
),
alert:
'Runner was not updated.'
end
end
end
end
...
...
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