mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 12:30:56 +01:00
Update Home for newPage
Summary: Converts /home/ to `newPage` Test Plan: Pull up Quick Create page, home, mobile home. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D15626
This commit is contained in:
parent
5dec03af32
commit
e6421b6ab3
2 changed files with 24 additions and 13 deletions
|
@ -51,11 +51,10 @@ final class PhabricatorHomeMainController extends PhabricatorHomeController {
|
|||
$content = $nav;
|
||||
}
|
||||
|
||||
return $this->buildApplicationPage(
|
||||
$content,
|
||||
array(
|
||||
'title' => 'Phabricator',
|
||||
));
|
||||
return $this->newPage()
|
||||
->setTitle('Phabricator')
|
||||
->appendChild($content);
|
||||
|
||||
}
|
||||
|
||||
private function buildMainResponse(array $projects) {
|
||||
|
|
|
@ -19,17 +19,29 @@ final class PhabricatorHomeQuickCreateController
|
|||
->setHref($item->getHref()));
|
||||
}
|
||||
|
||||
$title = pht('Quick Create');
|
||||
|
||||
$crumbs = $this->buildApplicationCrumbs();
|
||||
$crumbs->addTextCrumb(pht('Quick Create'));
|
||||
$crumbs->setBorder(true);
|
||||
|
||||
$box = id(new PHUIObjectBoxView())
|
||||
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
|
||||
->setObjectList($list);
|
||||
|
||||
$header = id(new PHUIHeaderView())
|
||||
->setHeader($title)
|
||||
->setHeaderIcon('fa-plus-square');
|
||||
|
||||
$view = id(new PHUITwoColumnView())
|
||||
->setHeader($header)
|
||||
->setFooter($box);
|
||||
|
||||
return $this->newPage()
|
||||
->setTitle($title)
|
||||
->setCrumbs($crumbs)
|
||||
->appendChild($view);
|
||||
|
||||
return $this->buildApplicationPage(
|
||||
array(
|
||||
$crumbs,
|
||||
$list,
|
||||
),
|
||||
array(
|
||||
'title' => pht('Quick Create'),
|
||||
));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue