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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
64149177
Commit
64149177
authored
Aug 24, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove conversion string to interger for access_level
parent
6f19fc11
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
app/controllers/projects/runners_controller.rb
app/controllers/projects/runners_controller.rb
+1
-3
app/views/projects/runners/_form.html.haml
app/views/projects/runners/_form.html.haml
+1
-1
No files found.
app/controllers/projects/runners_controller.rb
View file @
64149177
...
@@ -59,8 +59,6 @@ class Projects::RunnersController < Projects::ApplicationController
...
@@ -59,8 +59,6 @@ class Projects::RunnersController < Projects::ApplicationController
end
end
def
runner_params
def
runner_params
params
.
require
(
:runner
).
permit
(
Ci
::
Runner
::
FORM_EDITABLE
).
tap
do
|
params
|
params
.
require
(
:runner
).
permit
(
Ci
::
Runner
::
FORM_EDITABLE
)
params
[
'access_level'
]
=
params
[
'access_level'
].
to_i
if
params
[
'access_level'
]
end
end
end
end
end
app/views/projects/runners/_form.html.haml
View file @
64149177
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
=
label
:protected
,
"Protected"
,
class:
'control-label'
=
label
:protected
,
"Protected"
,
class:
'control-label'
.col-sm-10
.col-sm-10
.checkbox
.checkbox
=
f
.
check_box
:access_level
,
{},
Ci
::
Runner
.
access_levels
[
'protected_'
],
Ci
::
Runner
.
access_levels
[
'unprotected'
]
=
f
.
check_box
:access_level
,
{},
'protected_'
,
'unprotected'
%span
.light
This runner will only run on pipelines trigged on protected branches
%span
.light
This runner will only run on pipelines trigged on protected branches
.form-group
.form-group
=
label
:run_untagged
,
'Run untagged jobs'
,
class:
'control-label'
=
label
:run_untagged
,
'Run untagged jobs'
,
class:
'control-label'
...
...
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