@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
fork

Configure Feed

Select the types of activity you want to include in your feed.

Allow sidenav to have custom classes on items

Summary:
I need this to set "disabled" on some menu items that are policy-restricted.

NOTE: This is getting gross and I promise to clean it up with the new side nav stuff.

Test Plan: Added "Disabled" to some items, they became disabeld.

Reviewers: vrana, btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T603

Differential Revision: https://secure.phabricator.com/D3203

+17 -2
+17 -2
src/view/layout/AphrontSideNavFilterView.php
··· 53 53 return $this; 54 54 } 55 55 56 - public function addFilter($key, $name, $uri = null, $relative = false) { 56 + public function addFilter( 57 + $key, 58 + $name, 59 + $uri = null, 60 + $relative = false, 61 + $class = null) { 62 + 57 63 $this->items[] = array( 58 - 'filter', $key, $name, 'uri' => $uri, 'relative' => $relative); 64 + 'filter', 65 + $key, 66 + $name, 67 + 'uri' => $uri, 68 + 'relative' => $relative, 69 + 'class' => $class, 70 + ); 71 + 59 72 return $this; 60 73 } 61 74 ··· 133 146 $class = ($key == $this->selectedFilter) 134 147 ? 'aphront-side-nav-selected' 135 148 : null; 149 + 150 + $class = trim($class.' '.idx($item, 'class', '')); 136 151 137 152 if (empty($item['uri'])) { 138 153 $href = clone $this->baseURI;