[Backport] Issue #2583: Use us.is_closed instead us.status.is_closed in US detail page
parent
f5863b5909
commit
475c7e27e9
|
@ -159,8 +159,11 @@ IssueStatusDisplayDirective = ($template)->
|
|||
|
||||
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
|
||||
})
|
||||
$el.html(html)
|
||||
|
||||
|
|
|
@ -159,8 +159,11 @@ TaskStatusDisplayDirective = ($template) ->
|
|||
|
||||
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
|
||||
})
|
||||
$el.html(html)
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
span
|
||||
<% if (status.is_closed) { %>
|
||||
<% if (is_closed) { %>
|
||||
| Closed
|
||||
<% } else { %>
|
||||
| Open
|
||||
|
|
Loading…
Reference in New Issue