- var itemsCount = this.state.items.length; if itemsCount .builds.builds__timeline.builds__timeline-large(class="builds__timeline-#{itemsCount % 2 ? 'left' : 'right'}") each build, index in this.state.items Item(build=build, key=build.id) else p Build history is empty