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
Boxiang Sun
gitlab-ce
Commits
732e98ee
Commit
732e98ee
authored
May 09, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reuse runners edit form in admin and project area
parent
4cc85a58
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
44 deletions
+29
-44
app/views/admin/runners/show.html.haml
app/views/admin/runners/show.html.haml
+3
-19
app/views/projects/runners/_form.html.haml
app/views/projects/runners/_form.html.haml
+25
-0
app/views/projects/runners/edit.html.haml
app/views/projects/runners/edit.html.haml
+1
-25
No files found.
app/views/admin/runners/show.html.haml
View file @
732e98ee
...
...
@@ -22,25 +22,9 @@
%h4
This runner will process builds only from ASSIGNED projects
%p
You can't make this a shared runner.
%hr
=
form_for
@runner
,
url:
admin_runner_path
(
@runner
),
html:
{
class:
'form-horizontal'
}
do
|
f
|
.form-group
=
label_tag
:token
,
class:
'control-label'
do
Token
.col-sm-10
=
f
.
text_field
:token
,
class:
'form-control'
,
readonly:
true
.form-group
=
label_tag
:description
,
class:
'control-label'
do
Description
.col-sm-10
=
f
.
text_field
:description
,
class:
'form-control'
.form-group
=
label_tag
:tag_list
,
class:
'control-label'
do
Tags
.col-sm-10
=
f
.
text_field
:tag_list
,
value:
@runner
.
tag_list
.
to_s
,
class:
'form-control'
.help-block
You can setup builds to only use runners with specific tags
.form-actions
=
f
.
submit
'Save'
,
class:
'btn btn-save'
.append-bottom-20
=
render
'/projects/runners/form'
,
runner:
@runner
,
runner_form_url:
admin_runner_path
(
@runner
)
.row
.col-md-6
...
...
app/views/projects/runners/_form.html.haml
0 → 100644
View file @
732e98ee
=
form_for
runner
,
url:
runner_form_url
,
html:
{
class:
'form-horizontal'
}
do
|
f
|
.form-group
=
label
:active
,
"Active"
,
class:
'control-label'
.col-sm-10
.checkbox
=
f
.
check_box
:active
%span
.light
Paused runners don't accept new builds
.form-group
=
label_tag
:token
,
class:
'control-label'
do
Token
.col-sm-10
=
f
.
text_field
:token
,
class:
'form-control'
,
readonly:
true
.form-group
=
label_tag
:description
,
class:
'control-label'
do
Description
.col-sm-10
=
f
.
text_field
:description
,
class:
'form-control'
.form-group
=
label_tag
:tag_list
,
class:
'control-label'
do
Tags
.col-sm-10
=
f
.
text_field
:tag_list
,
value:
runner
.
tag_list
.
to_s
,
class:
'form-control'
.help-block
You can setup jobs to only use runners with specific tags
.form-actions
=
f
.
submit
'Save changes'
,
class:
'btn btn-save'
app/views/projects/runners/edit.html.haml
View file @
732e98ee
...
...
@@ -2,28 +2,4 @@
%h4
Runner ##{@runner.id}
%hr
=
form_for
@runner
,
url:
runner_path
(
@runner
),
html:
{
class:
'form-horizontal'
}
do
|
f
|
.form-group
=
label
:active
,
"Active"
,
class:
'control-label'
.col-sm-10
.checkbox
=
f
.
check_box
:active
%span
.light
Paused runners don't accept new builds
.form-group
=
label_tag
:token
,
class:
'control-label'
do
Token
.col-sm-10
=
f
.
text_field
:token
,
class:
'form-control'
,
readonly:
true
.form-group
=
label_tag
:description
,
class:
'control-label'
do
Description
.col-sm-10
=
f
.
text_field
:description
,
class:
'form-control'
.form-group
=
label_tag
:tag_list
,
class:
'control-label'
do
Tags
.col-sm-10
=
f
.
text_field
:tag_list
,
value:
@runner
.
tag_list
.
to_s
,
class:
'form-control'
.help-block
You can setup jobs to only use runners with specific tags
.form-actions
=
f
.
submit
'Save changes'
,
class:
'btn btn-save'
=
render
'form'
,
runner:
@runner
,
runner_form_url:
runner_path
(
@runner
)
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