mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-06 12:51:01 +01:00
d0b3f199bb
Summary: Fixes T1102. If you don't use `arc`, the web workflow requires some extra needless steps when updating diffs. Provide a more streamlined "Update Diff" workflow. Test Plan: {F347750} Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T1102 Differential Revision: https://secure.phabricator.com/D12131
24 lines
565 B
PHP
24 lines
565 B
PHP
<?php
|
|
|
|
abstract class DifferentialController extends PhabricatorController {
|
|
|
|
public function buildSideNavView($for_app = false) {
|
|
$viewer = $this->getRequest()->getUser();
|
|
|
|
$nav = new AphrontSideNavFilterView();
|
|
$nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
|
|
|
|
id(new DifferentialRevisionSearchEngine())
|
|
->setViewer($viewer)
|
|
->addNavigationItems($nav->getMenu());
|
|
|
|
$nav->selectFilter(null);
|
|
|
|
return $nav;
|
|
}
|
|
|
|
public function buildApplicationMenu() {
|
|
return $this->buildSideNavView(true)->getMenu();
|
|
}
|
|
|
|
}
|