Differential D20931 Diff 49948 src/applications/config/controller/services/PhabricatorConfigDatabaseStatusController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/controller/services/PhabricatorConfigDatabaseStatusController.php
- This file was moved from src/applications/config/controller/PhabricatorConfigDatabaseStatusController.php.
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | public function handleRequest(AphrontRequest $request) { | ||||
return $this->renderServers( | return $this->renderServers( | ||||
$comp, | $comp, | ||||
$expect, | $expect, | ||||
$actual); | $actual); | ||||
} | } | ||||
private function buildResponse($title, $body) { | private function buildResponse($title, $body) { | ||||
$nav = $this->buildSideNavView(); | $nav = $this->newNavigation('schemata'); | ||||
$nav->selectFilter('database/'); | |||||
if (!$title) { | if (!$title) { | ||||
$title = pht('Database Status'); | $title = pht('Database Status'); | ||||
} | } | ||||
$ref = $this->ref; | $ref = $this->ref; | ||||
$database = $this->database; | $database = $this->database; | ||||
$table = $this->table; | $table = $this->table; | ||||
Show All 29 Lines | private function buildResponse($title, $body) { | ||||
if ($key) { | if ($key) { | ||||
$links[] = array( | $links[] = array( | ||||
$key, | $key, | ||||
"database/{$ref}/{$database}/{$table}/key/{$key}/", | "database/{$ref}/{$database}/{$table}/key/{$key}/", | ||||
); | ); | ||||
} | } | ||||
$crumbs = $this->buildApplicationCrumbs(); | $crumbs = $this->newCrumbs(); | ||||
$crumbs->setBorder(true); | |||||
$last_key = last_key($links); | $last_key = last_key($links); | ||||
foreach ($links as $link_key => $link) { | foreach ($links as $link_key => $link) { | ||||
list($name, $href) = $link; | list($name, $href) = $link; | ||||
if ($link_key == $last_key) { | if ($link_key == $last_key) { | ||||
$crumbs->addTextCrumb($name); | $crumbs->addTextCrumb($name); | ||||
} else { | } else { | ||||
$crumbs->addTextCrumb($name, $this->getApplicationURI($href)); | $crumbs->addTextCrumb($name, $this->getApplicationURI($href)); | ||||
▲ Show 20 Lines • Show All 734 Lines • Show Last 20 Lines |