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.3 KiB
PHP
53 lines
1.3 KiB
PHP
<?php
|
|
|
|
final class PhabricatorConfigHistoryController
|
|
extends PhabricatorConfigController {
|
|
|
|
public function handleRequest(AphrontRequest $request) {
|
|
$viewer = $request->getViewer();
|
|
$id = $request->getURIData('id');
|
|
|
|
$xactions = id(new PhabricatorConfigTransactionQuery())
|
|
->setViewer($viewer)
|
|
->needComments(true)
|
|
->execute();
|
|
|
|
$object = new PhabricatorConfigEntry();
|
|
|
|
$xaction = $object->getApplicationTransactionTemplate();
|
|
|
|
$view = $xaction->getApplicationTransactionViewObject();
|
|
|
|
$timeline = $view
|
|
->setUser($viewer)
|
|
->setTransactions($xactions)
|
|
->setRenderAsFeed(true)
|
|
->setObjectPHID(PhabricatorPHIDConstants::PHID_VOID);
|
|
|
|
$timeline->setShouldTerminate(true);
|
|
|
|
$object->willRenderTimeline($timeline, $this->getRequest());
|
|
|
|
$title = pht('Settings History');
|
|
|
|
$crumbs = $this->buildApplicationCrumbs();
|
|
$crumbs->addTextCrumb('Configuration', $this->getApplicationURI());
|
|
$crumbs->addTextCrumb($title, '/config/history/');
|
|
|
|
$nav = $this->buildSideNavView();
|
|
$nav->selectFilter('history/');
|
|
|
|
$view = id(new PHUITwoColumnView())
|
|
->setNavigation($nav)
|
|
->setMainColumn(array(
|
|
$timeline,
|
|
));
|
|
|
|
return $this->newPage()
|
|
->setTitle($title)
|
|
->setCrumbs($crumbs)
|
|
->appendChild($view);
|
|
}
|
|
|
|
}
|