Summary: Minor spacing tweaks to Config app. Added label for consistency. Test Plan: Review pages in the Config app for spacing. Reviewers: epriestley, btrahan Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4523
27 lines
696 B
PHP
27 lines
696 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 Config'));
|
|
$nav->addFilter('/', pht('Configuration'));
|
|
$nav->addFilter('issue/', pht('Setup Issues'));
|
|
$nav->addFilter('all/', pht('Current Settings'));
|
|
|
|
return $nav;
|
|
}
|
|
|
|
public function buildApplicationMenu() {
|
|
return $this->buildSideNavView(null, true)->getMenu();
|
|
}
|
|
|
|
}
|