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

Better text when project home has no tasks

Summary: Adds more user friendly copy to the result list

Test Plan: Test on a project with and without tasks.

Reviewers: btrahan, epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

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

+13
+12
src/applications/maniphest/view/ManiphestTaskListView.php
··· 6 6 private $handles; 7 7 private $showBatchControls; 8 8 private $showSubpriorityControls; 9 + private $noDataString; 9 10 10 11 public function setTasks(array $tasks) { 11 12 assert_instances_of($tasks, 'ManiphestTask'); ··· 29 30 return $this; 30 31 } 31 32 33 + public function setNoDataString($text) { 34 + $this->noDataString = $text; 35 + return $this; 36 + } 37 + 32 38 public function render() { 33 39 $handles = $this->handles; 34 40 ··· 36 42 37 43 $list = new PHUIObjectItemListView(); 38 44 $list->setFlush(true); 45 + 46 + if ($this->noDataString) { 47 + $list->setNoDataString($this->noDataString); 48 + } else { 49 + $list->setNoDataString(pht('No tasks.')); 50 + } 39 51 40 52 $status_map = ManiphestTaskStatus::getTaskStatusMap(); 41 53 $color_map = ManiphestTaskPriority::getColorMap();
+1
src/applications/project/controller/PhabricatorProjectProfileController.php
··· 110 110 $task_list->setUser($user); 111 111 $task_list->setTasks($tasks); 112 112 $task_list->setHandles($handles); 113 + $task_list->setNoDataString(pht('This project has no open tasks.')); 113 114 114 115 $phid = $project->getPHID(); 115 116 $view_uri = urisprintf(