mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-25 18:46:17 +00:00
select current build at sidebar
This commit is contained in:
parent
f387e308a1
commit
139159a525
@ -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 {
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user