Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/graph/ManiphestTaskGraph.php
Show All 24 Lines | final class ManiphestTaskGraph | ||||
protected function newTableRow($phid, $object, $trace) { | protected function newTableRow($phid, $object, $trace) { | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
if ($object) { | if ($object) { | ||||
$status = $object->getStatus(); | $status = $object->getStatus(); | ||||
$priority = $object->getPriority(); | $priority = $object->getPriority(); | ||||
$status_icon = ManiphestTaskStatus::getStatusIcon($status); | $status_icon = ManiphestTaskStatus::getStatusIcon($status); | ||||
$status_name = ManiphestTaskStatus::getTaskStatusName($status); | $status_name = ManiphestTaskStatus::getTaskStatusName($status); | ||||
$priority_color = ManiphestTaskPriority::getTaskPriorityColor($priority); | |||||
$priority_color = ManiphestTaskPriority::getTaskPriorityColor($priority); | |||||
if ($object->isClosed()) { | |||||
$priority_color = 'grey'; | |||||
} | |||||
$status = array( | $status = array( | ||||
id(new PHUIIconView())->setIcon($status_icon, $priority_color), | id(new PHUIIconView())->setIcon($status_icon, $priority_color), | ||||
' ', | ' ', | ||||
$status_name, | $status_name, | ||||
); | ); | ||||
$owner_phid = $object->getOwnerPHID(); | $owner_phid = $object->getOwnerPHID(); | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |