addAction( id(new PhabricatorMenuItemView()) ->setName(pht('Upload File')) ->setIcon('create') // TODO: Get @chad to build an "upload" icon. ->setHref($this->getApplicationURI('/upload/'))); return $crumbs; } protected function buildSideNavView() { $menu = $this->buildMenu($for_devices = false); return AphrontSideNavFilterView::newFromMenu($menu); } protected function buildApplicationMenu() { return $this->buildMenu($for_devices = true); } private function buildMenu($for_devices) { $menu = new PhabricatorMenuView(); if ($for_devices) { $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'); return $menu; } }