Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/view/ProjectBoardTaskCard.php
| Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Lines | if (ManiphestTaskPoints::getIsEnabled()) { | ||||
| ->setColor(PHUITagView::COLOR_GREY) | ->setColor(PHUITagView::COLOR_GREY) | ||||
| ->setSlimShady(true) | ->setSlimShady(true) | ||||
| ->setName($points) | ->setName($points) | ||||
| ->addClass('phui-workcard-points'); | ->addClass('phui-workcard-points'); | ||||
| $card->addAttribute($points_tag); | $card->addAttribute($points_tag); | ||||
| } | } | ||||
| } | } | ||||
| $subtype = $task->newSubtypeObject(); | |||||
| if ($subtype && $subtype->hasTagView()) { | |||||
| $subtype_tag = $subtype->newTagView() | |||||
| ->setSlimShady(true); | |||||
| $card->addAttribute($subtype_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()) | ||||
| ->setIcon($icon.' grey'); | ->setIcon($icon.' grey'); | ||||
| $card->addAttribute($icon); | $card->addAttribute($icon); | ||||
| $card->setBarColor('grey'); | $card->setBarColor('grey'); | ||||
| } | } | ||||
| Show All 25 Lines | |||||