Issue #2583: Use us.is_closed instead us.status.is_closed in US detail page
parent
3767d68507
commit
2f9a1a75a9
|
@ -160,8 +160,11 @@ IssueStatusDisplayDirective = ($template, $compile)->
|
||||||
|
|
||||||
link = ($scope, $el, $attrs) ->
|
link = ($scope, $el, $attrs) ->
|
||||||
render = (issue) ->
|
render = (issue) ->
|
||||||
|
status = $scope.statusById[issue.status]
|
||||||
|
|
||||||
html = template({
|
html = template({
|
||||||
status: $scope.statusById[issue.status]
|
is_closed: status.is_closed
|
||||||
|
status: status
|
||||||
})
|
})
|
||||||
|
|
||||||
html = $compile(html)($scope)
|
html = $compile(html)($scope)
|
||||||
|
|
|
@ -159,8 +159,11 @@ TaskStatusDisplayDirective = ($template, $compile) ->
|
||||||
|
|
||||||
link = ($scope, $el, $attrs) ->
|
link = ($scope, $el, $attrs) ->
|
||||||
render = (task) ->
|
render = (task) ->
|
||||||
|
status = $scope.statusById[task.status]
|
||||||
|
|
||||||
html = template({
|
html = template({
|
||||||
status: $scope.statusById[task.status]
|
is_closed: status.is_closed
|
||||||
|
status: status
|
||||||
})
|
})
|
||||||
|
|
||||||
html = $compile(html)($scope)
|
html = $compile(html)($scope)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
span(translate="STATUS.OPEN", ng-if="status.is_closed")
|
span(translate="STATUS.OPEN", ng-if="is_closed")
|
||||||
span(translate="STATUS.CLOSED", ng-if="!status.is_closed")
|
span(translate="STATUS.CLOSED", ng-if="!is_closed")
|
||||||
|
|
||||||
span(class="us-detail-status", style!="color:<%- status.color %>")
|
span(class="us-detail-status", style!="color:<%- status.color %>")
|
||||||
| <%- status.name %>
|
| <%- status.name %>
|
||||||
|
|
Loading…
Reference in New Issue