2015-07-20 17:08:37 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PhabricatorConfigModuleController
|
|
|
|
extends PhabricatorConfigController {
|
|
|
|
|
|
|
|
public function handleRequest(AphrontRequest $request) {
|
|
|
|
$viewer = $this->getViewer();
|
|
|
|
$key = $request->getURIData('module');
|
|
|
|
|
|
|
|
$all_modules = PhabricatorConfigModule::getAllModules();
|
|
|
|
if (empty($all_modules[$key])) {
|
|
|
|
return new Aphront404Response();
|
|
|
|
}
|
|
|
|
|
|
|
|
$module = $all_modules[$key];
|
|
|
|
$content = $module->renderModuleStatus($request);
|
2016-04-03 00:27:39 +00:00
|
|
|
$title = $module->getModuleName();
|
2015-07-20 17:08:37 -07:00
|
|
|
|
|
|
|
$crumbs = $this->buildApplicationCrumbs();
|
2016-04-03 00:27:39 +00:00
|
|
|
$crumbs->addTextCrumb($title);
|
Redesign Config Application
Summary: Ref T11132, significantly cleans up the Config app, new layout, icons, spacing, etc. Some minor todos around re-designing "issues", mobile support, and maybe another pass at actual Group pages.
Test Plan: Visit and test every page in the config app, set new items, resolve setup issues, etc.
Reviewers: epriestley
Reviewed By: epriestley
Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam, Korvin
Maniphest Tasks: T11132
Differential Revision: https://secure.phabricator.com/D16468
2016-08-29 15:36:13 -07:00
|
|
|
$crumbs->setBorder(true);
|
2015-07-20 17:08:37 -07:00
|
|
|
|
|
|
|
$nav = $this->buildSideNavView();
|
|
|
|
$nav->selectFilter('module/'.$key.'/');
|
2016-04-08 22:00:38 +00:00
|
|
|
|
Redesign Config Application
Summary: Ref T11132, significantly cleans up the Config app, new layout, icons, spacing, etc. Some minor todos around re-designing "issues", mobile support, and maybe another pass at actual Group pages.
Test Plan: Visit and test every page in the config app, set new items, resolve setup issues, etc.
Reviewers: epriestley
Reviewed By: epriestley
Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam, Korvin
Maniphest Tasks: T11132
Differential Revision: https://secure.phabricator.com/D16468
2016-08-29 15:36:13 -07:00
|
|
|
$header = id(new PHUIHeaderView())
|
|
|
|
->setHeader($title)
|
|
|
|
->setProfileHeader(true);
|
|
|
|
|
|
|
|
$content = id(new PhabricatorConfigPageView())
|
|
|
|
->setHeader($header)
|
|
|
|
->setContent($content);
|
2015-07-20 17:08:37 -07:00
|
|
|
|
2016-04-03 00:27:39 +00:00
|
|
|
return $this->newPage()
|
|
|
|
->setTitle($title)
|
2016-04-08 22:00:38 +00:00
|
|
|
->setCrumbs($crumbs)
|
Redesign Config Application
Summary: Ref T11132, significantly cleans up the Config app, new layout, icons, spacing, etc. Some minor todos around re-designing "issues", mobile support, and maybe another pass at actual Group pages.
Test Plan: Visit and test every page in the config app, set new items, resolve setup issues, etc.
Reviewers: epriestley
Reviewed By: epriestley
Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam, Korvin
Maniphest Tasks: T11132
Differential Revision: https://secure.phabricator.com/D16468
2016-08-29 15:36:13 -07:00
|
|
|
->setNavigation($nav)
|
|
|
|
->appendChild($content)
|
2016-10-01 12:35:13 -07:00
|
|
|
->addClass('white-background');
|
2015-07-20 17:08:37 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|