2015-01-01 06:51:44 -08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PhabricatorConfigHistoryController
|
|
|
|
extends PhabricatorConfigController {
|
|
|
|
|
2015-07-27 09:06:26 -07:00
|
|
|
public function handleRequest(AphrontRequest $request) {
|
|
|
|
$viewer = $request->getViewer();
|
|
|
|
$id = $request->getURIData('id');
|
2015-01-01 06:51:44 -08:00
|
|
|
|
|
|
|
$xactions = id(new PhabricatorConfigTransactionQuery())
|
2015-07-27 09:06:26 -07:00
|
|
|
->setViewer($viewer)
|
2015-01-01 06:51:44 -08:00
|
|
|
->needComments(true)
|
|
|
|
->execute();
|
|
|
|
|
|
|
|
$object = new PhabricatorConfigEntry();
|
|
|
|
|
|
|
|
$xaction = $object->getApplicationTransactionTemplate();
|
|
|
|
|
|
|
|
$view = $xaction->getApplicationTransactionViewObject();
|
|
|
|
|
|
|
|
$timeline = $view
|
2015-07-27 09:06:26 -07:00
|
|
|
->setUser($viewer)
|
2015-01-01 06:51:44 -08:00
|
|
|
->setTransactions($xactions)
|
|
|
|
->setRenderAsFeed(true)
|
|
|
|
->setObjectPHID(PhabricatorPHIDConstants::PHID_VOID);
|
|
|
|
|
|
|
|
$timeline->setShouldTerminate(true);
|
|
|
|
|
|
|
|
$object->willRenderTimeline($timeline, $this->getRequest());
|
|
|
|
|
|
|
|
$title = pht('Settings History');
|
2017-09-05 15:21:12 -07:00
|
|
|
$header = $this->buildHeaderView($title);
|
2015-01-01 06:51:44 -08:00
|
|
|
|
2015-01-27 12:26:15 -08:00
|
|
|
$nav = $this->buildSideNavView();
|
|
|
|
$nav->selectFilter('history/');
|
2016-04-08 22:00:38 +00:00
|
|
|
|
2017-09-05 15:21:12 -07:00
|
|
|
$crumbs = $this->buildApplicationCrumbs()
|
|
|
|
->addTextCrumb($title)
|
|
|
|
->setBorder(true);
|
Redesign Config Application
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
2016-08-29 15:36:13 -07:00
|
|
|
|
2017-09-05 15:21:12 -07:00
|
|
|
$content = id(new PHUITwoColumnView())
|
Redesign Config Application
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
2016-08-29 15:36:13 -07:00
|
|
|
->setHeader($header)
|
2017-09-05 15:21:12 -07:00
|
|
|
->setNavigation($nav)
|
|
|
|
->setFixed(true)
|
|
|
|
->setMainColumn($timeline);
|
2015-01-27 12:26:15 -08:00
|
|
|
|
2016-04-03 00:27:39 +00:00
|
|
|
return $this->newPage()
|
|
|
|
->setTitle($title)
|
2016-04-08 22:00:38 +00:00
|
|
|
->setCrumbs($crumbs)
|
2017-09-05 15:21:12 -07:00
|
|
|
->appendChild($content);
|
2015-01-01 06:51:44 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|