use duration component on project page

This commit is contained in:
oleg 2015-08-26 20:47:11 +03:00
parent f3d4f741ca
commit 1eb22678e7
2 changed files with 4 additions and 3 deletions

View File

@ -41,13 +41,13 @@
p Last build duration:
if lastDoneBuild
span= lastDoneBuild.endDate - lastDoneBuild.startDate
Duration(value=(lastDoneBuild.endDate - lastDoneBuild.startDate))
else
| -
p Average build duration:
if this.state.project.avgBuildDuration
span= this.state.project.avgBuildDuration
Duration(value=this.state.project.avgBuildDuration)
else
| -

View File

@ -16,7 +16,8 @@ define([
template = template.locals({
Builds: Builds,
Scm: Scm,
DateTime: CommonComponents.DateTime
DateTime: CommonComponents.DateTime,
Duration: CommonComponents.Duration
});
return React.createClass({