mirror of
https://we.phorge.it/source/phorge.git
synced 2025-04-05 08:58:22 +02:00
Summary: Updates /home/ for handleRequest Test Plan: Visit /home/creat/ Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D14257
35 lines
825 B
PHP
35 lines
825 B
PHP
<?php
|
|
|
|
final class PhabricatorHomeQuickCreateController
|
|
extends PhabricatorHomeController {
|
|
|
|
public function handleRequest(AphrontRequest $request) {
|
|
$viewer = $this->getViewer();
|
|
|
|
$items = $this->getCurrentApplication()->loadAllQuickCreateItems($viewer);
|
|
|
|
$list = id(new PHUIObjectItemListView())
|
|
->setUser($viewer);
|
|
|
|
foreach ($items as $item) {
|
|
$list->addItem(
|
|
id(new PHUIObjectItemView())
|
|
->setHeader($item->getName())
|
|
->setWorkflow($item->getWorkflow())
|
|
->setHref($item->getHref()));
|
|
}
|
|
|
|
$crumbs = $this->buildApplicationCrumbs();
|
|
$crumbs->addTextCrumb(pht('Quick Create'));
|
|
|
|
return $this->buildApplicationPage(
|
|
array(
|
|
$crumbs,
|
|
$list,
|
|
),
|
|
array(
|
|
'title' => pht('Quick Create'),
|
|
));
|
|
}
|
|
|
|
}
|