mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-07 21:31:02 +01:00
87ebb80059
Summary: This reverts commit 5eb4bc6ca9
.
Test Plan: Reload homepage, no scrollbars
Reviewers: epriestley
Reviewed By: epriestley
Subscribers: Korvin
Differential Revision: https://secure.phabricator.com/D16645
56 lines
1.4 KiB
PHP
56 lines
1.4 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($title);
|
|
$crumbs->setBorder(true);
|
|
|
|
$nav = $this->buildSideNavView();
|
|
$nav->selectFilter('history/');
|
|
|
|
$header = id(new PHUIHeaderView())
|
|
->setHeader($title)
|
|
->setProfileHeader(true);
|
|
|
|
$content = id(new PhabricatorConfigPageView())
|
|
->setHeader($header)
|
|
->setContent($timeline);
|
|
|
|
return $this->newPage()
|
|
->setTitle($title)
|
|
->setCrumbs($crumbs)
|
|
->setNavigation($nav)
|
|
->appendChild($content)
|
|
->addClass('white-background');
|
|
}
|
|
|
|
}
|