mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 00:02:41 +01:00
12b53e003b
Summary: Ref T1191. Plan here is: - Build a tool showing the current schemata status (this diff). - Have it compare the current status to the desired status (partly here, mostly in future diffs). - Then add a migration tool, and eventually a setup issue to tell people to run it. Test Plan: Reviewed current schemata. {F204492} {F204493} {F204494} Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T1191 Differential Revision: https://secure.phabricator.com/D10494
28 lines
813 B
PHP
28 lines
813 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('all/', pht('All Settings'));
|
|
$nav->addFilter('issue/', pht('Setup Issues'));
|
|
$nav->addFilter('database/', pht('Database Status'));
|
|
$nav->addFilter('welcome/', pht('Welcome Screen'));
|
|
|
|
return $nav;
|
|
}
|
|
|
|
public function buildApplicationMenu() {
|
|
return $this->buildSideNavView(null, true)->getMenu();
|
|
}
|
|
|
|
}
|