mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 11:30:55 +01:00
33bda2d590
Summary: Ref T1812. Moves most specialized status handling into `ManiphestTaskStatus`. The only real missing case is reports. Test Plan: Browsed most of the affected interfaces. Changed task status: {F132697} Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T1812 Differential Revision: https://secure.phabricator.com/D8579
14 lines
347 B
PHP
14 lines
347 B
PHP
<?php
|
|
|
|
abstract class ManiphestView extends AphrontView {
|
|
|
|
public static function renderTagForTask(ManiphestTask $task) {
|
|
$status = $task->getStatus();
|
|
$status_name = ManiphestTaskStatus::getTaskStatusFullName($status);
|
|
|
|
return id(new PHUITagView())
|
|
->setType(PHUITagView::TYPE_STATE)
|
|
->setName($status_name);
|
|
}
|
|
|
|
}
|