Fixing taskboard, showing selected points

stable
Alejandro Alonso 2014-07-09 10:08:18 +02:00
parent a81ffef253
commit ade4938c06
2 changed files with 5 additions and 3 deletions

View File

@ -235,7 +235,8 @@ TaskboardUsPointsDirective = ($repo, $confirm) ->
<ul class="popover pop-points"> <ul class="popover pop-points">
<% _.each(points, function(point) { %> <% _.each(points, function(point) { %>
<li> <li>
<a href="" class="point" title="<%- point.name %>" <a href="" class="point <% if (point.id == rolePoint.point.id) { %>active<% } %>"
title="<%- point.name %>"
data-point-id="<%- point.id %>" data-role-id="<%- rolePoint.role.id %>"> data-point-id="<%- point.id %>" data-role-id="<%- rolePoint.role.id %>">
<%- point.name %> <%- point.name %>
</a> </a>
@ -294,7 +295,7 @@ TaskboardUsPointsDirective = ($repo, $confirm) ->
$scope.$apply -> $scope.$apply ->
onSuccess = -> onSuccess = ->
$repo.refresh(us) -> $repo.refresh(us).then ->
# TODO: Remove me when backlog will be fixed # TODO: Remove me when backlog will be fixed
$ctrl.loadSprintStats() $ctrl.loadSprintStats()

View File

@ -100,7 +100,8 @@ $column-margin: 0 10px 0 0;
a { a {
display: block; display: block;
text-align: center; text-align: center;
&:hover { &:hover,
&.active {
background: $fresh-taiga; background: $fresh-taiga;
color: $white; color: $white;
} }