1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-19 13:22:42 +01:00

Update Almanac for newPage

Summary: Swaps out for modern methods. Ref T9690

Test Plan: Check various Almanac pages, new devices, editing, lists.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T9690

Differential Revision: https://secure.phabricator.com/D14590
This commit is contained in:
Chad Little 2015-11-28 14:46:19 -08:00
parent 0d01dab5a3
commit 0d7b59e323
10 changed files with 71 additions and 79 deletions

View file

@ -110,14 +110,14 @@ final class AlmanacBindingEditController
$crumbs->addTextCrumb(pht('Edit Binding')); $crumbs->addTextCrumb(pht('Edit Binding'));
} }
return $this->buildApplicationPage( return $this->newPage()
array( ->setTitle($title)
$crumbs, ->setCrumbs($crumbs)
$box, ->appendChild(
), array(
array( $box,
'title' => $title,
)); ));
} }
} }

View file

@ -55,15 +55,14 @@ final class AlmanacBindingViewController
new AlmanacBindingTransactionQuery()); new AlmanacBindingTransactionQuery());
$timeline->setShouldTerminate(true); $timeline->setShouldTerminate(true);
return $this->buildApplicationPage( return $this->newPage()
array( ->setTitle($title)
$crumbs, ->setCrumbs($crumbs)
$box, ->appendChild(
$this->buildAlmanacPropertiesTable($binding), array(
$timeline, $box,
), $this->buildAlmanacPropertiesTable($binding),
array( $timeline,
'title' => $title,
)); ));
} }

View file

@ -40,14 +40,14 @@ final class AlmanacConsoleController extends AlmanacController {
->setHeaderText(pht('Console')) ->setHeaderText(pht('Console'))
->setObjectList($menu); ->setObjectList($menu);
return $this->buildApplicationPage( return $this->newPage()
array( ->setTitle(pht('Almanac Console'))
$crumbs, ->setCrumbs($crumbs)
$box, ->appendChild(
), array(
array( $box,
'title' => pht('Almanac Console'),
)); ));
} }
} }

View file

@ -151,13 +151,12 @@ final class AlmanacDeviceEditController
$crumbs->addTextCrumb(pht('Edit')); $crumbs->addTextCrumb(pht('Edit'));
} }
return $this->buildApplicationPage( return $this->newPage()
array( ->setTitle($title)
$crumbs, ->setCrumbs($crumbs)
$box, ->appendChild(
), array(
array( $box,
'title' => $title,
)); ));
} }

View file

@ -57,18 +57,17 @@ final class AlmanacDeviceViewController
new AlmanacDeviceTransactionQuery()); new AlmanacDeviceTransactionQuery());
$timeline->setShouldTerminate(true); $timeline->setShouldTerminate(true);
return $this->buildApplicationPage( return $this->newPage()
array( ->setTitle($title)
$crumbs, ->setCrumbs($crumbs)
$box, ->appendChild(
$interfaces, array(
$this->buildAlmanacPropertiesTable($device), $box,
$this->buildSSHKeysTable($device), $interfaces,
$this->buildServicesTable($device), $this->buildAlmanacPropertiesTable($device),
$timeline, $this->buildSSHKeysTable($device),
), $this->buildServicesTable($device),
array( $timeline,
'title' => $title,
)); ));
} }

View file

@ -142,13 +142,12 @@ final class AlmanacInterfaceEditController
$crumbs->addTextCrumb(pht('Edit Interface')); $crumbs->addTextCrumb(pht('Edit Interface'));
} }
return $this->buildApplicationPage( return $this->newPage()
array( ->setTitle($title)
$crumbs, ->setCrumbs($crumbs)
$box, ->appendChild(
), array(
array( $box,
'title' => $title,
)); ));
} }

View file

@ -130,13 +130,12 @@ final class AlmanacNetworkEditController
$crumbs->addTextCrumb(pht('Edit')); $crumbs->addTextCrumb(pht('Edit'));
} }
return $this->buildApplicationPage( return $this->newPage()
array( ->setTitle($title)
$crumbs, ->setCrumbs($crumbs)
$box, ->appendChild(
), array(
array( $box,
'title' => $title,
)); ));
} }

View file

@ -42,14 +42,13 @@ final class AlmanacNetworkViewController
new AlmanacNetworkTransactionQuery()); new AlmanacNetworkTransactionQuery());
$timeline->setShouldTerminate(true); $timeline->setShouldTerminate(true);
return $this->buildApplicationPage( return $this->newPage()
array( ->setTitle($title)
$crumbs, ->setCrumbs($crumbs)
$box, ->appendChild(
$timeline, array(
), $box,
array( $timeline,
'title' => $title,
)); ));
} }

View file

@ -168,13 +168,12 @@ final class AlmanacServiceEditController
$crumbs->addTextCrumb(pht('Edit')); $crumbs->addTextCrumb(pht('Edit'));
} }
return $this->buildApplicationPage( return $this->newPage()
array( ->setTitle($title)
$crumbs, ->setCrumbs($crumbs)
$box, ->appendChild(
), array(
array( $box,
'title' => $title,
)); ));
} }

View file

@ -56,17 +56,16 @@ final class AlmanacServiceViewController
new AlmanacServiceTransactionQuery()); new AlmanacServiceTransactionQuery());
$timeline->setShouldTerminate(true); $timeline->setShouldTerminate(true);
return $this->buildApplicationPage( return $this->newPage()
array( ->setTitle($title)
$crumbs, ->setCrumbs($crumbs)
$box, ->appendChild(
array(
$box,
$bindings, $bindings,
$this->buildAlmanacPropertiesTable($service), $this->buildAlmanacPropertiesTable($service),
$timeline, $timeline,
), ));
array(
'title' => $title,
));
} }
private function buildPropertyList(AlmanacService $service) { private function buildPropertyList(AlmanacService $service) {