2015-12-11 15:41:01 +00:00
|
|
|
- var itemsCount = this.state.items.length;
|
|
|
|
|
2015-12-11 20:16:43 +00:00
|
|
|
if itemsCount
|
|
|
|
.builds.builds__timeline.builds__timeline-large(class="builds__timeline-#{itemsCount % 2 ? 'left' : 'right'}")
|
2015-12-11 15:41:01 +00:00
|
|
|
each build, index in this.state.items
|
|
|
|
Item(build=build, key=build.id)
|
2015-12-11 20:16:43 +00:00
|
|
|
else
|
|
|
|
p Build history is empty
|
2015-12-17 20:22:14 +00:00
|
|
|
|
|
|
|
if itemsCount && itemsCount % 20 === 0
|
|
|
|
.text-center
|
|
|
|
a.btn.btn-sm.btn-default(href="javascript:void(0);", onClick=this.onShowMoreBuilds(this.props.projectName))
|
|
|
|
i.fa.fa-fw.fa-plus(title="Show more builds")
|
|
|
|
|
|
|
|
|
| Show more builds
|