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

Make Workboard icon grey if not enabled

Summary: Not sure this is obvious enough, but maybe future apps will use as well?

Test Plan: test a project with and without a workboard

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

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

+12 -1
+12 -1
src/applications/project/controller/PhabricatorProjectController.php
··· 38 38 } 39 39 40 40 public function buildIconNavView(PhabricatorProject $project) { 41 + $user = $this->getRequest()->getUser(); 41 42 $id = $project->getID(); 42 43 $picture = $project->getProfileImageURI(); 43 44 $name = $project->getName(); 44 45 46 + $columns = id(new PhabricatorProjectColumnQuery()) 47 + ->setViewer($user) 48 + ->withProjectPHIDs(array($project->getPHID())) 49 + ->execute(); 50 + if ($columns) { 51 + $board_icon = 'fa-columns'; 52 + } else { 53 + $board_icon = 'fa-columns grey'; 54 + } 55 + 45 56 $nav = new AphrontSideNavFilterView(); 46 57 $nav->setIconNav(true); 47 58 $nav->setBaseURI(new PhutilURI($this->getApplicationURI())); 48 59 $nav->addIcon("profile/{$id}/", $name, null, $picture); 49 - $nav->addIcon("board/{$id}/", pht('Workboard'), 'fa-columns'); 60 + $nav->addIcon("board/{$id}/", pht('Workboard'), $board_icon); 50 61 $nav->addIcon("feed/{$id}/", pht('Feed'), 'fa-newspaper-o'); 51 62 $nav->addIcon("members/{$id}/", pht('Members'), 'fa-group'); 52 63 $nav->addIcon("edit/{$id}/", pht('Edit'), 'fa-pencil');