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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
1569dfd6
Commit
1569dfd6
authored
Jun 26, 2016
by
Takuya Noguchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename CiBuild as Build
parent
22be8628
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/assets/javascripts/build.coffee
app/assets/javascripts/build.coffee
+3
-3
app/views/projects/builds/show.html.haml
app/views/projects/builds/show.html.haml
+1
-1
No files found.
app/assets/javascripts/build.coffee
View file @
1569dfd6
class
@
Ci
Build
class
@
Build
@
interval
:
null
@
interval
:
null
@
state
:
null
@
state
:
null
constructor
:
(
@
page_url
,
@
build_url
,
@
build_status
,
@
state
)
->
constructor
:
(
@
page_url
,
@
build_url
,
@
build_status
,
@
state
)
->
clearInterval
(
Ci
Build
.
interval
)
clearInterval
(
Build
.
interval
)
# Init breakpoint checker
# Init breakpoint checker
@
bp
=
Breakpoints
.
get
()
@
bp
=
Breakpoints
.
get
()
...
@@ -40,7 +40,7 @@ class @CiBuild
...
@@ -40,7 +40,7 @@ class @CiBuild
# Check for new build output if user still watching build page
# Check for new build output if user still watching build page
# Only valid for runnig build when output changes during time
# Only valid for runnig build when output changes during time
#
#
Ci
Build
.
interval
=
setInterval
=>
Build
.
interval
=
setInterval
=>
if
window
.
location
.
href
.
split
(
"#"
).
first
()
is
@
page_url
if
window
.
location
.
href
.
split
(
"#"
).
first
()
is
@
page_url
@
getBuildTrace
()
@
getBuildTrace
()
,
4000
,
4000
...
...
app/views/projects/builds/show.html.haml
View file @
1569dfd6
...
@@ -67,4 +67,4 @@
...
@@ -67,4 +67,4 @@
=
render
"sidebar"
=
render
"sidebar"
:javascript
:javascript
new
Ci
Build
(
"
#{
namespace_project_build_url
(
@project
.
namespace
,
@project
,
@build
)
}
"
,
"
#{
namespace_project_build_url
(
@project
.
namespace
,
@project
,
@build
,
:json
)
}
"
,
"
#{
@build
.
status
}
"
,
"
#{
trace_with_state
[
:state
]
}
"
)
new
Build
(
"
#{
namespace_project_build_url
(
@project
.
namespace
,
@project
,
@build
)
}
"
,
"
#{
namespace_project_build_url
(
@project
.
namespace
,
@project
,
@build
,
:json
)
}
"
,
"
#{
@build
.
status
}
"
,
"
#{
trace_with_state
[
:state
]
}
"
)
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