mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-11 17:32:41 +01:00
3f180496e5
Summary: Ref T1344. Minor tweaks for crumb/link stuff -- @mikn has been doing some work here recently and I want to unblock him. Test Plan: Viewed board; viewed column edit screen. Reviewers: chad, btrahan Reviewed By: chad CC: mikn, aran Maniphest Tasks: T1344 Differential Revision: https://secure.phabricator.com/D7937
24 lines
547 B
PHP
24 lines
547 B
PHP
<?php
|
|
|
|
abstract class PhabricatorProjectController extends PhabricatorController {
|
|
|
|
public function buildSideNavView($for_app = false) {
|
|
$user = $this->getRequest()->getUser();
|
|
|
|
$nav = new AphrontSideNavFilterView();
|
|
$nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
|
|
|
|
if ($for_app) {
|
|
$nav->addFilter('create', pht('Create Project'));
|
|
}
|
|
|
|
id(new PhabricatorProjectSearchEngine())
|
|
->setViewer($user)
|
|
->addNavigationItems($nav->getMenu());
|
|
|
|
$nav->selectFilter(null);
|
|
|
|
return $nav;
|
|
}
|
|
|
|
}
|