select current build at sidebar

This commit is contained in:
oleg 2015-12-23 22:56:31 +03:00
parent f387e308a1
commit 139159a525
3 changed files with 19 additions and 2 deletions

View File

@ -177,6 +177,21 @@
border-right-color: darken(@well-bg, 10%);
top: 13px;
}
&__current {
&:before {
left: 10px;
border-right-color: @component-active-bg;
top: 13px;
}
.builds {
&_inner {
border-left: 6px solid @component-active-bg;
}
}
}
}
&_header {

View File

@ -1,6 +1,8 @@
.builds.builds__timeline.builds__timeline-small
each item in this.state.items
.builds_item(key=item.id, class="builds_item__#{item.status}")
- var buildItemClasses = ['builds_item__' + item.status];
- if (item.id === this.props.currentBuild.id) buildItemClasses.push('builds_item__current');
.builds_item(key=item.id, class=buildItemClasses)
.builds_inner
.row
.builds_header

View File

@ -14,7 +14,7 @@ mixin statusBadge(build)
.row
if this.state.build
.col-sm-3.hidden-xs
BuildSidebar(projectName=this.state.build.project.name)
BuildSidebar(projectName=this.state.build.project.name, currentBuild=this.state.build)
.col-sm-9
h1.page-header