1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-20 12:30:56 +01:00

Update phpast for new UI

Summary: New UI for phpast

Test Plan: Open page, doesn't crash

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D15627
This commit is contained in:
Chad Little 2016-04-05 13:43:38 -07:00
parent 8dfc7d4201
commit c8995ad0fe

View file

@ -47,13 +47,24 @@ final class PhabricatorXHPASTViewRunController
$form_box = id(new PHUIObjectBoxView())
->setHeaderText(pht('Generate XHP AST'))
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
->setForm($form);
return $this->buildApplicationPage(
$form_box,
array(
'title' => pht('XHPAST View'),
$title = pht('XHPAST View');
$header = id(new PHUIHeaderView())
->setHeader($title)
->setHeaderIcon('fa-ambulance');
$view = id(new PHUITwoColumnView())
->setHeader($header)
->setFooter(array(
$form_box,
));
return $this->newPage()
->setTitle($title)
->appendChild($view);
}
}