Differential D25002 Diff 39 src/applications/config/controller/PhabricatorConfigConsoleController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/controller/PhabricatorConfigConsoleController.php
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | $menu->addItem( | ||||
pht( | pht( | ||||
'Show installed extensions and modules.'))); | 'Show installed extensions and modules.'))); | ||||
$crumbs = $this->buildApplicationCrumbs() | $crumbs = $this->buildApplicationCrumbs() | ||||
->addTextCrumb(pht('Console')) | ->addTextCrumb(pht('Console')) | ||||
->setBorder(true); | ->setBorder(true); | ||||
$box = id(new PHUIObjectBoxView()) | $box = id(new PHUIObjectBoxView()) | ||||
->setHeaderText(pht('Phabricator Configuation')) | ->setHeaderText(pht('%s Configuration', | ||||
PhabricatorPlatformSite::getName())) | |||||
->setBackground(PHUIObjectBoxView::WHITE_CONFIG) | ->setBackground(PHUIObjectBoxView::WHITE_CONFIG) | ||||
->setObjectList($menu); | ->setObjectList($menu); | ||||
$versions = $this->newLibraryVersionTable($viewer); | $versions = $this->newLibraryVersionTable($viewer); | ||||
$binary_versions = $this->newBinaryVersionTable(); | $binary_versions = $this->newBinaryVersionTable(); | ||||
$launcher_view = id(new PHUILauncherView()) | $launcher_view = id(new PHUILauncherView()) | ||||
->appendChild($box) | ->appendChild($box) | ||||
->appendChild($versions) | ->appendChild($versions) | ||||
->appendChild($binary_versions); | ->appendChild($binary_versions); | ||||
$view = id(new PHUITwoColumnView()) | $view = id(new PHUITwoColumnView()) | ||||
->setFooter($launcher_view); | ->setFooter($launcher_view); | ||||
return $this->newPage() | return $this->newPage() | ||||
->setTitle(pht('Phabricator Configuation')) | ->setTitle(pht('%s Configuration', | ||||
PhabricatorPlatformSite::getName())) | |||||
->setCrumbs($crumbs) | ->setCrumbs($crumbs) | ||||
->appendChild($view); | ->appendChild($view); | ||||
} | } | ||||
public function newLibraryVersionTable() { | public function newLibraryVersionTable() { | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$versions = $this->loadVersions($viewer); | $versions = $this->loadVersions($viewer); | ||||
▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | $table_view = id(new AphrontTableView($rows)) | ||||
array( | array( | ||||
'pri', | 'pri', | ||||
null, | null, | ||||
null, | null, | ||||
'wide', | 'wide', | ||||
)); | )); | ||||
return id(new PHUIObjectBoxView()) | return id(new PHUIObjectBoxView()) | ||||
->setHeaderText(pht('Phabricator Version Information')) | ->setHeaderText(pht('%s Version Information', | ||||
PhabricatorPlatformSite::getName())) | |||||
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) | ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) | ||||
->appendChild($table_view); | ->appendChild($table_view); | ||||
} | } | ||||
private function loadVersions(PhabricatorUser $viewer) { | private function loadVersions(PhabricatorUser $viewer) { | ||||
$specs = array( | $specs = array( | ||||
'phabricator', | 'phabricator', | ||||
'arcanist', | 'arcanist', | ||||
▲ Show 20 Lines • Show All 194 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0