1
0
Fork 0
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:
Chad Little 2016-04-05 13:32:06 -07:00
parent 5dec03af32
commit e6421b6ab3
2 changed files with 24 additions and 13 deletions

View file

@ -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) {

View file

@ -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'),
));
}
}