Commit 4dcef812 authored by Daniel Stone's avatar Daniel Stone Committed by Ana Rute Mendes
Browse files

LOCAL/UI: Project: Show task status in workboard cards

Show the status of every task in workboard cards using the icons
explicitly, rather than just differentiating between closed and
not-closed.

This is a local UI choice.
parent ecb1b12d
...@@ -149,13 +149,14 @@ final class ProjectBoardTaskCard extends Phobject { ...@@ -149,13 +149,14 @@ final class ProjectBoardTaskCard extends Phobject {
$card->addAttribute($subtype_tag); $card->addAttribute($subtype_tag);
} }
if ($task->isClosed()) { $status = $task->getStatus();
$icon = ManiphestTaskStatus::getStatusIcon($task->getStatus()); $status_icon = ManiphestTaskStatus::getStatusIcon($status);
$icon = id(new PHUIIconView()) if (ManiphestTaskStatus::isClosedStatus($status)) {
->setIcon($icon.' grey'); $status_color = 'grey';
$card->addAttribute($icon); } else {
$card->setBarColor('grey'); $status_color = 'dark';
} }
$card->setStatusIcon($status_icon.' '.$status_color);
$review_status = $task->getReviewIcon($viewer); $review_status = $task->getReviewIcon($viewer);
if ($review_status) { if ($review_status) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment