@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+24 -13
+4 -5
src/applications/home/controller/PhabricatorHomeMainController.php
··· 51 51 $content = $nav; 52 52 } 53 53 54 - return $this->buildApplicationPage( 55 - $content, 56 - array( 57 - 'title' => 'Phabricator', 58 - )); 54 + return $this->newPage() 55 + ->setTitle('Phabricator') 56 + ->appendChild($content); 57 + 59 58 } 60 59 61 60 private function buildMainResponse(array $projects) {
+20 -8
src/applications/home/controller/PhabricatorHomeQuickCreateController.php
··· 19 19 ->setHref($item->getHref())); 20 20 } 21 21 22 + $title = pht('Quick Create'); 23 + 22 24 $crumbs = $this->buildApplicationCrumbs(); 23 25 $crumbs->addTextCrumb(pht('Quick Create')); 26 + $crumbs->setBorder(true); 24 27 25 - return $this->buildApplicationPage( 26 - array( 27 - $crumbs, 28 - $list, 29 - ), 30 - array( 31 - 'title' => pht('Quick Create'), 32 - )); 28 + $box = id(new PHUIObjectBoxView()) 29 + ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) 30 + ->setObjectList($list); 31 + 32 + $header = id(new PHUIHeaderView()) 33 + ->setHeader($title) 34 + ->setHeaderIcon('fa-plus-square'); 35 + 36 + $view = id(new PHUITwoColumnView()) 37 + ->setHeader($header) 38 + ->setFooter($box); 39 + 40 + return $this->newPage() 41 + ->setTitle($title) 42 + ->setCrumbs($crumbs) 43 + ->appendChild($view); 44 + 33 45 } 34 46 35 47 }