Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / legalpad / controller / LegalpadController.php
blob006f1329d5244bb16396cd18c6e2abc91c337dcf
1 <?php
3 abstract class LegalpadController extends PhabricatorController {
5 public function buildSideNav($for_app = false) {
6 $user = $this->getRequest()->getUser();
8 $nav = new AphrontSideNavFilterView();
9 $nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
11 if ($for_app) {
12 $nav->addFilter('edit/', pht('Create Document'));
15 id(new LegalpadDocumentSearchEngine())
16 ->setViewer($user)
17 ->addNavigationItems($nav->getMenu());
19 $nav->addLabel(pht('Signatures'));
20 $nav->addFilter('signatures/', pht('Find Signatures'));
22 return $nav;
25 public function buildApplicationMenu() {
26 return $this->buildSideNav(true)->getMenu();