Implement ApplicationSearch in Files
Summary: Ref T2625. Ref T1163. A couple of small generalization nudges, but this is almost entirely straightforward. Test Plan: Executed various File queries. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T1163, T2625 Differential Revision: https://secure.phabricator.com/D6091
This commit is contained in:
@@ -29,13 +29,9 @@ abstract class PhabricatorFileController extends PhabricatorController {
|
||||
$menu->newLink(pht('Upload File'), $this->getApplicationURI('/upload/'));
|
||||
}
|
||||
|
||||
$menu->newLabel(pht('Filters'));
|
||||
|
||||
$menu->newLink(pht('My Files'), $this->getApplicationURI('filter/my/'))
|
||||
->setKey('my');
|
||||
|
||||
$menu->newLink(pht('All Files'), $this->getApplicationURI('filter/all/'))
|
||||
->setKey('all');
|
||||
id(new PhabricatorFileSearchEngine())
|
||||
->setViewer($this->getRequest()->getUser())
|
||||
->addNavigationItems($menu);
|
||||
|
||||
return $menu;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user