diff --git a/app/coffee/modules/issues/detail.coffee b/app/coffee/modules/issues/detail.coffee index 130e9113..b5a5bed7 100644 --- a/app/coffee/modules/issues/detail.coffee +++ b/app/coffee/modules/issues/detail.coffee @@ -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) diff --git a/app/coffee/modules/tasks/detail.coffee b/app/coffee/modules/tasks/detail.coffee index d35dbb93..441fb761 100644 --- a/app/coffee/modules/tasks/detail.coffee +++ b/app/coffee/modules/tasks/detail.coffee @@ -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) diff --git a/app/partials/common/components/status-display.jade b/app/partials/common/components/status-display.jade index 90af915b..b3c22e4d 100644 --- a/app/partials/common/components/status-display.jade +++ b/app/partials/common/components/status-display.jade @@ -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 %>