@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3abstract class PhabricatorAuditController extends PhabricatorController {
4
5 public function buildSideNavView() {
6
7 $user = $this->getRequest()->getUser();
8
9 $nav = new AphrontSideNavFilterView();
10 $nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
11
12 id(new PhabricatorCommitSearchEngine())
13 ->setViewer($user)
14 ->addNavigationItems($nav->getMenu());
15
16 $nav->selectFilter(null);
17
18 return $nav;
19 }
20
21 public function buildApplicationMenu() {
22 return $this->buildSideNavView()->getMenu();
23 }
24
25}