nci/static/js/app/components/projects/view/index.jade

59 lines
1.3 KiB
Plaintext
Raw Normal View History

.row
.col-md-8
2015-07-21 20:00:09 +00:00
h1.clearfix
.pull-right
2015-07-21 20:00:09 +00:00
button.btn.btn-sm.btn-primary.dropdown-toggle(
data-toggle="dropdown",
2015-09-26 14:19:08 +00:00
aria-expanded="false",
disabled="true"
2015-07-21 20:00:09 +00:00
)
2015-09-26 14:19:08 +00:00
| target revision:
2015-07-21 20:00:09 +00:00
span= this.state.project.scm ? this.state.project.scm.rev : ''
|
if this.state.project.name
button.btn.btn-sm.btn-success(onClick=this.onBuildProject)
i.fa.fa-fw.fa-play
|
span Build
div
Scm(scm=this.state.project.scm ? this.state.project.scm.type : '')
span= this.state.project.name
hr
2015-07-21 20:00:09 +00:00
div.text-muted
- var lastDoneBuild = this.state.project.lastDoneBuild;
p Last successfully built:
if lastDoneBuild
DateTime(value=lastDoneBuild.endDate)
|
| (build #
span= lastDoneBuild.number
| )
else
| -
p Current successfully streak:
if lastDoneBuild
span= this.state.project.doneBuildsStreak
else
| -
p Last build duration:
if lastDoneBuild
2015-08-26 17:47:11 +00:00
Duration(value=(lastDoneBuild.endDate - lastDoneBuild.startDate))
else
| -
p Average build duration:
if this.state.project.avgBuildDuration
2015-08-26 17:47:11 +00:00
Duration(value=this.state.project.avgBuildDuration)
else
| -
h2
i.fa.fa-fw.fa-history
span
span Build history
2015-09-27 20:47:50 +00:00
Builds(projectName=this.props.params.name)