mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-28 17:52:43 +01:00
4c6ab5060e
Summary: Well, I'm just putting it into the DAO classes, or am I doing something wrong? Will be used by future event listeners Test Plan: Visited some tasks and revisions. Look fine. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5542
19 lines
506 B
PHP
19 lines
506 B
PHP
<?php
|
|
|
|
/**
|
|
* @group maniphest
|
|
*/
|
|
abstract class ManiphestView extends AphrontView {
|
|
|
|
public static function renderTagForTask(ManiphestTask $task) {
|
|
$status = $task->getStatus();
|
|
$status_name = ManiphestTaskStatus::getTaskStatusFullName($status);
|
|
$status_color = ManiphestTaskStatus::getTaskStatusTagColor($status);
|
|
|
|
return id(new PhabricatorTagView())
|
|
->setType(PhabricatorTagView::TYPE_STATE)
|
|
->setName($status_name)
|
|
->setBackgroundColor($status_color);
|
|
}
|
|
|
|
}
|