setBaseURI(new PhutilURI($this->getApplicationURI('filter/'))); if ($paste) { $nav->addFilter('paste', 'P'.$paste->getID(), '/P'.$paste->getID()); $nav->addSpacer(); } $nav->addLabel('Create'); $nav->addFilter('edit', 'New Paste', $this->getApplicationURI()); $nav->addSpacer(); $nav->addLabel('Pastes'); $nav->addFilter('my', 'My Pastes'); $nav->addFilter('all', 'All Pastes'); return $nav; } }