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
2d446267
Commit
2d446267
authored
Mar 10, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed CiBuild in favour of already available CiBuild class
parent
b9168b07
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
16 deletions
+13
-16
app/assets/javascripts/ci/build.coffee
app/assets/javascripts/ci/build.coffee
+13
-0
app/assets/javascripts/ci_build.js.coffee
app/assets/javascripts/ci_build.js.coffee
+0
-14
app/assets/javascripts/dispatcher.js.coffee
app/assets/javascripts/dispatcher.js.coffee
+0
-2
No files found.
app/assets/javascripts/ci/build.coffee
View file @
2d446267
...
...
@@ -4,6 +4,8 @@ class CiBuild
constructor
:
(
build_url
,
build_status
)
->
clearInterval
(
CiBuild
.
interval
)
@
initScrollButtonAffix
()
if
build_status
==
"running"
||
build_status
==
"pending"
#
# Bind autoscroll button to follow build output
...
...
@@ -38,4 +40,15 @@ class CiBuild
checkAutoscroll
:
->
$
(
"html,body"
).
scrollTop
$
(
"#build-trace"
).
height
()
if
"enabled"
is
$
(
"#autoscroll-button"
).
data
(
"state"
)
initScrollButtonAffix
:
->
buildScroll
=
$
(
'#js-build-scroll'
)
body
=
$
(
'body'
)
buildTrace
=
$
(
'#build-trace'
)
buildScroll
.
affix
(
offset
:
bottom
:
->
body
.
outerHeight
()
-
(
buildTrace
.
outerHeight
()
+
buildTrace
.
offset
().
top
)
)
@
CiBuild
=
CiBuild
app/assets/javascripts/ci_build.js.coffee
deleted
100644 → 0
View file @
b9168b07
class
@
CiBuild
constructor
:
->
@
initScrollButtonAffix
()
initScrollButtonAffix
:
->
buildScroll
=
$
(
'#js-build-scroll'
)
body
=
$
(
'body'
)
buildTrace
=
$
(
'#build-trace'
)
buildScroll
.
affix
(
offset
:
bottom
:
->
body
.
outerHeight
()
-
(
buildTrace
.
outerHeight
()
+
buildTrace
.
offset
().
top
)
)
app/assets/javascripts/dispatcher.js.coffee
View file @
2d446267
...
...
@@ -103,8 +103,6 @@ class Dispatcher
new
ProjectFork
()
when
'projects:artifacts:browse'
new
BuildArtifacts
()
when
'projects:builds:show'
new
CiBuild
()
switch
path
.
first
()
when
'admin'
...
...
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