Issue #2583: Use us.is_closed instead us.status.is_closed in US detail page

stable
David Barragán Merino 2015-04-20 17:21:40 +02:00
parent 3767d68507
commit 2f9a1a75a9
3 changed files with 10 additions and 4 deletions

View File

@ -160,8 +160,11 @@ IssueStatusDisplayDirective = ($template, $compile)->
link = ($scope, $el, $attrs) ->
render = (issue) ->
status = $scope.statusById[issue.status]
html = template({
status: $scope.statusById[issue.status]
is_closed: status.is_closed
status: status
})
html = $compile(html)($scope)

View File

@ -159,8 +159,11 @@ TaskStatusDisplayDirective = ($template, $compile) ->
link = ($scope, $el, $attrs) ->
render = (task) ->
status = $scope.statusById[task.status]
html = template({
status: $scope.statusById[task.status]
is_closed: status.is_closed
status: status
})
html = $compile(html)($scope)

View File

@ -1,5 +1,5 @@
span(translate="STATUS.OPEN", ng-if="status.is_closed")
span(translate="STATUS.CLOSED", ng-if="!status.is_closed")
span(translate="STATUS.OPEN", ng-if="is_closed")
span(translate="STATUS.CLOSED", ng-if="!is_closed")
span(class="us-detail-status", style!="color:<%- status.color %>")
| <%- status.name %>