Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/controller/PhabricatorConfigController.php
Show All 19 Lines | public function buildSideNavView($filter = null, $for_app = false) { | ||||
$nav->addLabel(pht('Database')); | $nav->addLabel(pht('Database')); | ||||
$nav->addFilter('database/', pht('Database Status')); | $nav->addFilter('database/', pht('Database Status')); | ||||
$nav->addFilter('dbissue/', pht('Database Issues')); | $nav->addFilter('dbissue/', pht('Database Issues')); | ||||
$nav->addLabel(pht('Cache')); | $nav->addLabel(pht('Cache')); | ||||
$nav->addFilter('cache/', pht('Cache Status')); | $nav->addFilter('cache/', pht('Cache Status')); | ||||
$nav->addLabel(pht('Welcome')); | $nav->addLabel(pht('Welcome')); | ||||
$nav->addFilter('welcome/', pht('Welcome Screen')); | $nav->addFilter('welcome/', pht('Welcome Screen')); | ||||
$nav->addLabel(pht('Modules')); | $nav->addLabel(pht('Modules')); | ||||
$nav->addFilter('module/sites/', pht('Sites')); | |||||
$modules = PhabricatorConfigModule::getAllModules(); | |||||
foreach ($modules as $key => $module) { | |||||
$nav->addFilter('module/'.$key.'/', $module->getModuleName()); | |||||
} | |||||
return $nav; | return $nav; | ||||
} | } | ||||
public function buildApplicationMenu() { | public function buildApplicationMenu() { | ||||
return $this->buildSideNavView(null, true)->getMenu(); | return $this->buildSideNavView(null, true)->getMenu(); | ||||
} | } | ||||
} | } |