mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 06:20: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:
parent
ad77b014f1
commit
5383ea9d56
1 changed files with 11 additions and 0 deletions
|
@ -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())
|
||||||
|
|
Loading…
Reference in a new issue