mirror of
https://we.phorge.it/source/phorge.git
synced 2025-04-04 08:28:22 +02:00
Summary: Fixes T6859. Adds a readout in `/config/` of installed edge and PHID types. See also D13626. Test Plan: {F643222} Reviewers: btrahan, chad Reviewed By: chad Subscribers: epriestley Maniphest Tasks: T6859 Differential Revision: https://secure.phabricator.com/D13662
46 lines
916 B
PHP
46 lines
916 B
PHP
<?php
|
|
|
|
final class PhabricatorConfigSiteModule extends PhabricatorConfigModule {
|
|
|
|
public function getModuleKey() {
|
|
return 'site';
|
|
}
|
|
|
|
public function getModuleName() {
|
|
return pht('Sites');
|
|
}
|
|
|
|
public function renderModuleStatus(AphrontRequest $request) {
|
|
$viewer = $request->getViewer();
|
|
|
|
$sites = AphrontSite::getAllSites();
|
|
|
|
$rows = array();
|
|
foreach ($sites as $key => $site) {
|
|
$rows[] = array(
|
|
$site->getPriority(),
|
|
$key,
|
|
$site->getDescription(),
|
|
);
|
|
}
|
|
|
|
$table = id(new AphrontTableView($rows))
|
|
->setHeaders(
|
|
array(
|
|
pht('Priority'),
|
|
pht('Class'),
|
|
pht('Description'),
|
|
))
|
|
->setColumnClasses(
|
|
array(
|
|
null,
|
|
'pri',
|
|
'wide',
|
|
));
|
|
|
|
return id(new PHUIObjectBoxView())
|
|
->setHeaderText(pht('Sites'))
|
|
->appendChild($table);
|
|
}
|
|
|
|
}
|