Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
GitLab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
GitLab
Commits
607996c6
Commit
607996c6
authored
8 years ago
by
Grzegorz Bizon
Browse files
Options
Downloads
Patches
Plain Diff
Remove broken inline runner description edit form
parent
4cc85a58
No related branches found
No related tags found
1 merge request
!389
CE upstream
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/assets/javascripts/ci/application.js.coffee
+0
-28
0 additions, 28 deletions
app/assets/javascripts/ci/application.js.coffee
app/views/admin/runners/_runner.html.haml
+2
-10
2 additions, 10 deletions
app/views/admin/runners/_runner.html.haml
with
2 additions
and
38 deletions
app/assets/javascripts/ci/application.js.coffee
+
0
−
28
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..'
)
...
...
This diff is collapsed.
Click to expand it.
app/views/admin/runners/_runner.html.haml
+
2
−
10
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment