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

Update Drydock remaining pages to new UI

Summary: Updates Console and Operations page.

Test Plan: Pull up Console, pull up status page

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D15615
This commit is contained in:
Chad Little 2016-04-04 20:40:14 -07:00
parent e965a59bca
commit f2a38f52d7
2 changed files with 19 additions and 20 deletions

View file

@ -62,19 +62,25 @@ final class DrydockConsoleController extends DrydockController {
$crumbs = $this->buildApplicationCrumbs(); $crumbs = $this->buildApplicationCrumbs();
$crumbs->addTextCrumb(pht('Console')); $crumbs->addTextCrumb(pht('Console'));
$crumbs->setBorder(true);
$box = id(new PHUIObjectBoxView()) $box = id(new PHUIObjectBoxView())
->setHeaderText(pht('Drydock Console'))
->setObjectList($menu); ->setObjectList($menu);
return $this->buildApplicationPage( $title = pht('Drydock Console');
array(
$crumbs, $header = id(new PHUIHeaderView())
$box, ->setHeader($title)
), ->setHeaderIcon('fa-truck');
array(
'title' => pht('Drydock Console'), $view = id(new PHUITwoColumnView())
)); ->setHeader($header)
->setFooter($box);
return $this->newPage()
->setTitle($title)
->setCrumbs($crumbs)
->appendChild($view);
} }
} }

View file

@ -43,17 +43,10 @@ final class DrydockRepositoryOperationStatusController
$this->getApplicationURI('operation/')); $this->getApplicationURI('operation/'));
$crumbs->addTextCrumb($title); $crumbs->addTextCrumb($title);
return $this->buildApplicationPage( return $this->newPage()
array( ->setTitle(pht('Status'))
$crumbs, ->setCrumbs($crumbs)
$status_view, ->appendChild($status_view);
),
array(
'title' => array(
$title,
pht('Status'),
),
));
} }
} }