Cosmetic fixes on taskboard.
parent
aecd5f302b
commit
95dc38cc81
|
@ -180,6 +180,7 @@ TaskboardRowSizeFixer = ->
|
||||||
|
|
||||||
|
|
||||||
TaskboardUsPointsDirective = ($repo, $confirm) ->
|
TaskboardUsPointsDirective = ($repo, $confirm) ->
|
||||||
|
# TODO: i18n
|
||||||
pointsTemplate = _.template("""
|
pointsTemplate = _.template("""
|
||||||
<% _.each(usRolePoints, function(rolePoint) { %>
|
<% _.each(usRolePoints, function(rolePoint) { %>
|
||||||
<li>
|
<li>
|
||||||
|
@ -202,7 +203,8 @@ TaskboardUsPointsDirective = ($repo, $confirm) ->
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<% }); %>
|
<% }); %>
|
||||||
""") # TODO: i18n
|
""")
|
||||||
|
|
||||||
renderUserStoryPoints = ($el, $scope, us) ->
|
renderUserStoryPoints = ($el, $scope, us) ->
|
||||||
points = $scope.pointsList
|
points = $scope.pointsList
|
||||||
usRolePoints = []
|
usRolePoints = []
|
||||||
|
@ -223,6 +225,7 @@ TaskboardUsPointsDirective = ($repo, $confirm) ->
|
||||||
link = ($scope, $el, $attrs) ->
|
link = ($scope, $el, $attrs) ->
|
||||||
$ctrl = $el.controller()
|
$ctrl = $el.controller()
|
||||||
us = $scope.$eval($attrs.tgTaskboardUsPoints)
|
us = $scope.$eval($attrs.tgTaskboardUsPoints)
|
||||||
|
|
||||||
renderUserStoryPoints($el, $scope, us)
|
renderUserStoryPoints($el, $scope, us)
|
||||||
|
|
||||||
$el.on "click", ".us-role-points", (event) ->
|
$el.on "click", ".us-role-points", (event) ->
|
||||||
|
|
Loading…
Reference in New Issue