From 5383ea9d5666870987c2c93b5db6c6f01ff9954e Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 11 Feb 2016 09:59:59 -0800 Subject: [PATCH] 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 --- .../project/view/ProjectBoardTaskCard.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/applications/project/view/ProjectBoardTaskCard.php b/src/applications/project/view/ProjectBoardTaskCard.php index 7e927bdd72..c7eda01189 100644 --- a/src/applications/project/view/ProjectBoardTaskCard.php +++ b/src/applications/project/view/ProjectBoardTaskCard.php @@ -95,6 +95,17 @@ final class ProjectBoardTaskCard extends Phobject { $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()) { $icon = ManiphestTaskStatus::getStatusIcon($task->getStatus()); $icon = id(new PHUIIconView())