mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-04 12:42:43 +01:00
d30cc73847
Summary: - 'Config' -> 'Configuration' - 'Configuration' -> 'Option Groups' Test Plan: Looked at /config Reviewers: epriestley, chad, vrana Reviewed By: chad CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4531
26 lines
703 B
PHP
26 lines
703 B
PHP
<?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();
|
|
$nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
|
|
$nav->addLabel(pht('Site Configuration'));
|
|
$nav->addFilter('/', pht('Option Groups'));
|
|
$nav->addFilter('issue/', pht('Setup Issues'));
|
|
$nav->addFilter('all/', pht('Current Settings'));
|
|
|
|
return $nav;
|
|
}
|
|
|
|
public function buildApplicationMenu() {
|
|
return $this->buildSideNavView(null, true)->getMenu();
|
|
}
|
|
|
|
}
|