[Backport] 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 f5863b5909
commit 475c7e27e9
3 changed files with 9 additions and 3 deletions

View File

@ -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)

View File

@ -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)

View File

@ -1,5 +1,5 @@
span span
<% if (status.is_closed) { %> <% if (is_closed) { %>
| Closed | Closed
<% } else { %> <% } else { %>
| Open | Open