Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/controller/PhabricatorConfigController.php
<?php | <?php | ||||
abstract class PhabricatorConfigController extends PhabricatorController { | abstract class PhabricatorConfigController extends PhabricatorController { | ||||
public function shouldRequireAdmin() { | public function shouldRequireAdmin() { | ||||
return true; | return true; | ||||
} | } | ||||
public function buildSideNavView($filter = null, $for_app = false) { | public function buildSideNavView($filter = null, $for_app = false) { | ||||
$user = $this->getRequest()->getUser(); | $user = $this->getRequest()->getUser(); | ||||
$nav = new AphrontSideNavFilterView(); | $nav = new AphrontSideNavFilterView(); | ||||
$nav->setBaseURI(new PhutilURI($this->getApplicationURI())); | $nav->setBaseURI(new PhutilURI($this->getApplicationURI())); | ||||
$nav->addLabel(pht('Configuration')); | $nav->addLabel(pht('Configuration')); | ||||
$nav->addFilter('/', pht('Browse Settings')); | $nav->addFilter('/', pht('Browse Settings')); | ||||
$nav->addFilter('all/', pht('All Settings')); | $nav->addFilter('all/', pht('All Settings')); | ||||
$nav->addFilter('history/', pht('Settings History')); | |||||
$nav->addLabel(pht('Setup')); | $nav->addLabel(pht('Setup')); | ||||
$nav->addFilter('issue/', pht('Setup Issues')); | $nav->addFilter('issue/', pht('Setup Issues')); | ||||
$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('Welcome')); | $nav->addLabel(pht('Welcome')); | ||||
$nav->addFilter('welcome/', pht('Welcome Screen')); | $nav->addFilter('welcome/', pht('Welcome Screen')); | ||||
return $nav; | return $nav; | ||||
} | } | ||||
public function buildApplicationMenu() { | public function buildApplicationMenu() { | ||||
return $this->buildSideNavView(null, true)->getMenu(); | return $this->buildSideNavView(null, true)->getMenu(); | ||||
} | } | ||||
} | } |