[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) ->
|
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
|
||||||
})
|
})
|
||||||
$el.html(html)
|
$el.html(html)
|
||||||
|
|
||||||
|
|
|
@ -159,8 +159,11 @@ TaskStatusDisplayDirective = ($template) ->
|
||||||
|
|
||||||
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
|
||||||
})
|
})
|
||||||
$el.html(html)
|
$el.html(html)
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
span
|
span
|
||||||
<% if (status.is_closed) { %>
|
<% if (is_closed) { %>
|
||||||
| Closed
|
| Closed
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
| Open
|
| Open
|
||||||
|
|
Loading…
Reference in New Issue