2012-12-28 00:20:09 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
abstract class PhabricatorConfigController extends PhabricatorController {
|
|
|
|
|
|
|
|
public function shouldRequireAdmin() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function buildSideNavView($filter = null, $for_app = false) {
|
|
|
|
$user = $this->getRequest()->getUser();
|
|
|
|
|
|
|
|
$nav = new AphrontSideNavFilterView();
|
2012-12-31 00:36:06 +01:00
|
|
|
$nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
|
2013-01-22 03:54:37 +01:00
|
|
|
$nav->addLabel(pht('Site Configuration'));
|
|
|
|
$nav->addFilter('/', pht('Option Groups'));
|
2014-06-23 18:37:51 +02:00
|
|
|
$nav->addFilter('all/', pht('All Settings'));
|
2012-12-31 00:36:06 +01:00
|
|
|
$nav->addFilter('issue/', pht('Setup Issues'));
|
2014-09-18 17:22:18 +02:00
|
|
|
$nav->addFilter('database/', pht('Database Status'));
|
2014-06-23 18:37:51 +02:00
|
|
|
$nav->addFilter('welcome/', pht('Welcome Screen'));
|
2012-12-28 00:20:09 +01:00
|
|
|
|
|
|
|
return $nav;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function buildApplicationMenu() {
|
|
|
|
return $this->buildSideNavView(null, true)->getMenu();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|