1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-30 01:10:58 +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()) $form_box = id(new PHUIObjectBoxView())
->setHeaderText(pht('Generate XHP AST')) ->setHeaderText(pht('Generate XHP AST'))
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
->setForm($form); ->setForm($form);
return $this->buildApplicationPage( $title = pht('XHPAST View');
$header = id(new PHUIHeaderView())
->setHeader($title)
->setHeaderIcon('fa-ambulance');
$view = id(new PHUITwoColumnView())
->setHeader($header)
->setFooter(array(
$form_box, $form_box,
array(
'title' => pht('XHPAST View'),
)); ));
return $this->newPage()
->setTitle($title)
->appendChild($view);
} }
} }