mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-27 05:59:08 +01:00
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
43 lines
892 B
PHP
43 lines
892 B
PHP
<?php
|
|
|
|
final class PhabricatorConfigEdgeModule extends PhabricatorConfigModule {
|
|
|
|
public function getModuleKey() {
|
|
return 'edge';
|
|
}
|
|
|
|
public function getModuleName() {
|
|
return pht('Edge Types');
|
|
}
|
|
|
|
public function renderModuleStatus(AphrontRequest $request) {
|
|
$viewer = $request->getViewer();
|
|
|
|
$types = PhabricatorEdgeType::getAllTypes();
|
|
$types = msort($types, 'getEdgeConstant');
|
|
|
|
$rows = array();
|
|
foreach ($types as $key => $type) {
|
|
$rows[] = array(
|
|
$type->getEdgeConstant(),
|
|
$type->getInverseEdgeConstant(),
|
|
get_class($type),
|
|
);
|
|
}
|
|
|
|
return id(new AphrontTableView($rows))
|
|
->setHeaders(
|
|
array(
|
|
pht('Constant'),
|
|
pht('Inverse'),
|
|
pht('Class'),
|
|
))
|
|
->setColumnClasses(
|
|
array(
|
|
null,
|
|
null,
|
|
'pri wide',
|
|
));
|
|
}
|
|
|
|
}
|