setBaseURI(new PhutilURI($this->getApplicationURI('filter/'))); if ($paste) { $nav->addFilter('paste', 'P'.$paste->getID(), '/P'.$paste->getID()); $nav->addSpacer(); } $nav->addLabel('Create'); $nav->addFilter('create', 'New Paste'); $nav->addSpacer(); $nav->addLabel('Pastes'); $nav->addFilter('my', 'My Pastes'); $nav->addFilter('all', 'All Pastes'); return $nav; } public function buildStandardPageResponse($view, array $data) { $page = $this->buildStandardPageView(); $page->setApplicationName('Paste'); $page->setBaseURI('/paste/'); $page->setTitle(idx($data, 'title')); $page->setGlyph("\xE2\x9C\x8E"); $page->appendChild($view); $response = new AphrontWebpageResponse(); return $response->setContent($page->render()); } }