Epics in taskboard and kanban

stable
Xavier Julián 2016-08-09 08:59:22 +02:00 committed by David Barragán Merino
parent 93645cee8c
commit fcecb72b40
4 changed files with 14 additions and 17 deletions

View File

@ -1,4 +1,6 @@
- var hash = "#"; - var hash = "#";
.belong-to-epic-pill-wrapper(tg-repeat="epic in epics") .belong-to-epic-pill-wrapper(tg-repeat="epic in epics")
.belong-to-epic-pill(ng-style="{'background': epic.get('color')}") .belong-to-epic-pill(
.belong-to-epic-pill-data #{hash}{{epic.get('id')}} {{epic.get('subject')}} ng-style="{'background': epic.get('color')}"
title="#{hash}{{epic.get('id')}} {{epic.get('subject')}}"
)

View File

@ -11,20 +11,7 @@
background-color: $grayer; background-color: $grayer;
border-radius: 50%; border-radius: 50%;
display: inline-block; display: inline-block;
height: .75rem; height: .7rem;
margin-left: .25rem;
position: relative; position: relative;
width: .75rem; width: .7rem;
}
.belong-to-epic-pill-data {
animation: dropdownFade .2s;
background: rgba($black, .9);
bottom: 1.25rem;
color: $white;
display: none;
left: -100px;
padding: .5rem 1rem;
position: absolute;
width: 200px;
z-index: 99;
} }

View File

@ -7,3 +7,7 @@ h2.card-title
) )
span(ng-if="vm.visible('ref')") {{::"#" + vm.item.getIn(['model', 'ref'])}} span(ng-if="vm.visible('ref')") {{::"#" + vm.item.getIn(['model', 'ref'])}}
span.e2e-title(ng-if="vm.visible('subject')") {{vm.item.getIn(['model', 'subject'])}} span.e2e-title(ng-if="vm.visible('subject')") {{vm.item.getIn(['model', 'subject'])}}
tg-belong-to-epics(
ng-if="vm.item.getIn(['model', 'epics'])"
epics="vm.item.getIn(['model', 'epics'])"
)

View File

@ -54,6 +54,10 @@ div.taskboard-table(
tg-bo-title="'#' + us.ref + ' ' + us.subject") tg-bo-title="'#' + us.ref + ' ' + us.subject")
span.us-ref(tg-bo-ref="us.ref") span.us-ref(tg-bo-ref="us.ref")
span(ng-bind="us.subject") span(ng-bind="us.subject")
tg-belong-to-epics(
ng-if="us.epics"
epics="us.epics"
)
p.points-value p.points-value
span(ng-bind="us.total_points") span(ng-bind="us.total_points")
span(translate="TASKBOARD.TABLE.FIELD_POINTS") span(translate="TASKBOARD.TABLE.FIELD_POINTS")