1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-24 14:30:56 +01:00

Add points to workboard cards

Summary: Fixes T10328.

Test Plan: {F1104609}

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10328

Differential Revision: https://secure.phabricator.com/D15243
This commit is contained in:
epriestley 2016-02-11 09:59:59 -08:00
parent ad77b014f1
commit 5383ea9d56

View file

@ -95,6 +95,17 @@ final class ProjectBoardTaskCard extends Phobject {
$card->setCoverImage($cover_file->getBestURI()); $card->setCoverImage($cover_file->getBestURI());
} }
if (ManiphestTaskPoints::getIsEnabled()) {
$points = $task->getPoints();
if ($points !== null) {
$points_tag = id(new PHUITagView())
->setType(PHUITagView::TYPE_SHADE)
->setShade(PHUITagView::COLOR_BLUE)
->setName($points);
$card->addAttribute($points_tag);
}
}
if ($task->isClosed()) { if ($task->isClosed()) {
$icon = ManiphestTaskStatus::getStatusIcon($task->getStatus()); $icon = ManiphestTaskStatus::getStatusIcon($task->getStatus());
$icon = id(new PHUIIconView()) $icon = id(new PHUIIconView())