Merge pull request #1413 from dangarbar/TG-4311/counter

Show user stories counter and wip limit for each status column in Kanban page
stable
Alejandro 2018-03-02 09:46:26 +01:00 committed by GitHub
commit f1c796ca38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 2 deletions

View File

@ -10,7 +10,11 @@ div.kanban-table(
tg-bo-title="s.name",
ng-class='{vfold:folds[s.id]}',
tg-class-permission="{'readonly': '!modify_task'}")
span(tg-bo-bind="s.name")
div.title
div.name(tg-bo-bind="s.name")
div.counter
span(tg-bo-bind="usByStatus.get(s.id.toString()).size")
span(tg-bo-bind="' / ' + s.wip_limit", ng-if="s.wip_limit")
div.options
a.option(
href=""

View File

@ -91,9 +91,19 @@ $column-padding: .5rem 1rem;
&:last-child {
margin-right: 0;
}
span {
.title {
width: 100%;
display: flex;
align-items: flex-end;
.counter {
margin: 0em .5rem;
@include font-size(xsmall);
line-height: 1.6;
}
.name {
@include ellipsis(65%);
}
}
.option {
margin-right: .3rem;
}