mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-25 17:46:18 +00:00
use duration component on project page
This commit is contained in:
parent
f3d4f741ca
commit
1eb22678e7
@ -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
|
||||
| -
|
||||
|
||||
|
@ -16,7 +16,8 @@ define([
|
||||
template = template.locals({
|
||||
Builds: Builds,
|
||||
Scm: Scm,
|
||||
DateTime: CommonComponents.DateTime
|
||||
DateTime: CommonComponents.DateTime,
|
||||
Duration: CommonComponents.Duration
|
||||
});
|
||||
|
||||
return React.createClass({
|
||||
|
Loading…
Reference in New Issue
Block a user