buildStandardPageView(); $page->setApplicationName('Maniphest'); $page->setBaseURI('/maniphest/'); $page->setTitle(idx($data, 'title')); $page->setGlyph("\xE2\x9A\x93"); $page->appendChild($view); $page->setSearchDefaultScope(PhabricatorSearchScope::SCOPE_OPEN_TASKS); $response = new AphrontWebpageResponse(); return $response->setContent($page->render()); } protected function buildBaseSideNav() { $nav = new AphrontSideNavFilterView(); $nav->setBaseURI(new PhutilURI('/maniphest/view/')); $nav->addLabel('User Tasks'); $nav->addFilter('action', 'Assigned'); $nav->addFilter('created', 'Created'); $nav->addFilter('subscribed', 'Subscribed'); $nav->addFilter('triage', 'Need Triage'); $nav->addSpacer(); $nav->addLabel('All Tasks'); $nav->addFilter('alltriage', 'Need Triage'); $nav->addFilter('all', 'All Tasks'); $nav->addSpacer(); $nav->addLabel('Custom'); $nav->addFilter('custom', 'Custom Query'); $nav->addSpacer(); $nav->addLabel('Reports'); $nav->addFilter('report', 'Reports', '/maniphest/report/'); return $nav; } }