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
Tatuya Kamada
gitlab-ce
Commits
607996c6
Commit
607996c6
authored
May 09, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove broken inline runner description edit form
parent
4cc85a58
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
38 deletions
+2
-38
app/assets/javascripts/ci/application.js.coffee
app/assets/javascripts/ci/application.js.coffee
+0
-28
app/views/admin/runners/_runner.html.haml
app/views/admin/runners/_runner.html.haml
+2
-10
No files found.
app/assets/javascripts/ci/application.js.coffee
View file @
607996c6
# This is a manifest file that'll be compiled into application.js, which will include all the files
# listed below.
#
# Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
# or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
#
# It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
# the compiled file.
#
# WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
# GO AFTER THE REQUIRES BELOW.
#
#= require pager
#= require jquery_nested_form
#= require_tree .
#
$
(
document
).
on
'click'
,
'.edit-runner-link'
,
(
event
)
->
event
.
preventDefault
()
descr
=
$
(
this
).
closest
(
'.runner-description'
).
first
()
descr
.
addClass
(
'hide'
)
form
=
descr
.
next
(
'.runner-description-form'
)
descrInput
=
form
.
find
(
'input.description'
)
originalValue
=
descrInput
.
val
()
form
.
removeClass
(
'hide'
)
form
.
find
(
'.cancel'
).
on
'click'
,
(
event
)
->
event
.
preventDefault
()
form
.
addClass
(
'hide'
)
descrInput
.
val
(
originalValue
)
descr
.
removeClass
(
'hide'
)
$
(
document
).
on
'click'
,
'.assign-all-runner'
,
->
$
(
this
).
replaceWith
(
'<i class="fa fa-refresh fa-spin"></i> Assign in progress..'
)
...
...
app/views/admin/runners/_runner.html.haml
View file @
607996c6
...
...
@@ -11,18 +11,10 @@
=
link_to
admin_runner_path
(
runner
)
do
=
runner
.
short_sha
%td
.runner-description
=
runner
.
description
%span
(
#{
link_to
'edit'
,
'#'
,
class:
'edit-runner-link'
}
)
.runner-description-form.hide
=
form_for
[
:admin
,
runner
],
remote:
true
,
html:
{
class:
'form-inline'
}
do
|
f
|
.form-group
=
f
.
text_field
:description
,
class:
'form-control'
=
f
.
submit
'Save'
,
class:
'btn'
%span
(
#{
link_to
'cancel'
,
'#'
,
class:
'cancel'
}
)
=
runner
.
description
%td
-
if
runner
.
shared?
\-
=
'-'
-
else
=
runner
.
projects
.
count
(
:all
)
%td
...
...
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