use duration component on project page
This commit is contained in:
parent
f3d4f741ca
commit
1eb22678e7
@ -41,13 +41,13 @@
|
|||||||
|
|
||||||
p Last build duration:
|
p Last build duration:
|
||||||
if lastDoneBuild
|
if lastDoneBuild
|
||||||
span= lastDoneBuild.endDate - lastDoneBuild.startDate
|
Duration(value=(lastDoneBuild.endDate - lastDoneBuild.startDate))
|
||||||
else
|
else
|
||||||
| -
|
| -
|
||||||
|
|
||||||
p Average build duration:
|
p Average build duration:
|
||||||
if this.state.project.avgBuildDuration
|
if this.state.project.avgBuildDuration
|
||||||
span= this.state.project.avgBuildDuration
|
Duration(value=this.state.project.avgBuildDuration)
|
||||||
else
|
else
|
||||||
| -
|
| -
|
||||||
|
|
||||||
|
@ -16,7 +16,8 @@ define([
|
|||||||
template = template.locals({
|
template = template.locals({
|
||||||
Builds: Builds,
|
Builds: Builds,
|
||||||
Scm: Scm,
|
Scm: Scm,
|
||||||
DateTime: CommonComponents.DateTime
|
DateTime: CommonComponents.DateTime,
|
||||||
|
Duration: CommonComponents.Duration
|
||||||
});
|
});
|
||||||
|
|
||||||
return React.createClass({
|
return React.createClass({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user