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:
		| @@ -51,11 +51,10 @@ final class PhabricatorHomeMainController extends PhabricatorHomeController { | |||||||
|       $content = $nav; |       $content = $nav; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     return $this->buildApplicationPage( |     return $this->newPage() | ||||||
|       $content, |       ->setTitle('Phabricator') | ||||||
|       array( |       ->appendChild($content); | ||||||
|         'title' => 'Phabricator', |  | ||||||
|       )); |  | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   private function buildMainResponse(array $projects) { |   private function buildMainResponse(array $projects) { | ||||||
|   | |||||||
| @@ -19,17 +19,29 @@ final class PhabricatorHomeQuickCreateController | |||||||
|           ->setHref($item->getHref())); |           ->setHref($item->getHref())); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     $title = pht('Quick Create'); | ||||||
|  |  | ||||||
|     $crumbs = $this->buildApplicationCrumbs(); |     $crumbs = $this->buildApplicationCrumbs(); | ||||||
|     $crumbs->addTextCrumb(pht('Quick Create')); |     $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'), |  | ||||||
|       )); |  | ||||||
|   } |   } | ||||||
|  |  | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Chad Little
					Chad Little