mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-26 13:39:08 +01:00
Summary: Switches over to new property UI boxes, splits core and apps into separate pages. Move Versions into "All Settings". I think there is some docs I likely need to update here as well. Test Plan: Click on each item in the sidebar, see new headers. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D16429
53 lines
1.2 KiB
PHP
53 lines
1.2 KiB
PHP
<?php
|
|
|
|
final class PhabricatorEditEngineExtensionModule
|
|
extends PhabricatorConfigModule {
|
|
|
|
public function getModuleKey() {
|
|
return 'editengine';
|
|
}
|
|
|
|
public function getModuleName() {
|
|
return pht('Engine: Edit');
|
|
}
|
|
|
|
public function renderModuleStatus(AphrontRequest $request) {
|
|
$viewer = $request->getViewer();
|
|
|
|
$extensions = PhabricatorEditEngineExtension::getAllExtensions();
|
|
|
|
$rows = array();
|
|
foreach ($extensions as $extension) {
|
|
$rows[] = array(
|
|
$extension->getExtensionPriority(),
|
|
get_class($extension),
|
|
$extension->getExtensionName(),
|
|
$extension->isExtensionEnabled()
|
|
? pht('Yes')
|
|
: pht('No'),
|
|
);
|
|
}
|
|
|
|
$table = id(new AphrontTableView($rows))
|
|
->setHeaders(
|
|
array(
|
|
pht('Priority'),
|
|
pht('Class'),
|
|
pht('Name'),
|
|
pht('Enabled'),
|
|
))
|
|
->setColumnClasses(
|
|
array(
|
|
null,
|
|
null,
|
|
'wide pri',
|
|
null,
|
|
));
|
|
|
|
return id(new PHUIObjectBoxView())
|
|
->setHeaderText(pht('EditEngine Extensions'))
|
|
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
|
|
->setTable($table);
|
|
}
|
|
|
|
}
|