Page MenuHomePhabricator

D11352.id27275.diff
No OneTemporary

D11352.id27275.diff

diff --git a/src/applications/maniphest/view/ManiphestTaskListView.php b/src/applications/maniphest/view/ManiphestTaskListView.php
--- a/src/applications/maniphest/view/ManiphestTaskListView.php
+++ b/src/applications/maniphest/view/ManiphestTaskListView.php
@@ -6,6 +6,7 @@
private $handles;
private $showBatchControls;
private $showSubpriorityControls;
+ private $noDataString;
public function setTasks(array $tasks) {
assert_instances_of($tasks, 'ManiphestTask');
@@ -29,6 +30,11 @@
return $this;
}
+ public function setNoDataString($text) {
+ $this->noDataString = $text;
+ return $this;
+ }
+
public function render() {
$handles = $this->handles;
@@ -37,6 +43,12 @@
$list = new PHUIObjectItemListView();
$list->setFlush(true);
+ if ($this->noDataString) {
+ $list->setNoDataString($this->noDataString);
+ } else {
+ $list->setNoDataString(pht('No tasks.'));
+ }
+
$status_map = ManiphestTaskStatus::getTaskStatusMap();
$color_map = ManiphestTaskPriority::getColorMap();
diff --git a/src/applications/project/controller/PhabricatorProjectProfileController.php b/src/applications/project/controller/PhabricatorProjectProfileController.php
--- a/src/applications/project/controller/PhabricatorProjectProfileController.php
+++ b/src/applications/project/controller/PhabricatorProjectProfileController.php
@@ -110,6 +110,7 @@
$task_list->setUser($user);
$task_list->setTasks($tasks);
$task_list->setHandles($handles);
+ $task_list->setNoDataString(pht('This project has no open tasks.'));
$phid = $project->getPHID();
$view_uri = urisprintf(

File Metadata

Mime Type
text/plain
Expires
Sun, Mar 16, 3:16 AM (1 w, 7 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7705438
Default Alt Text
D11352.id27275.diff (1 KB)

Event Timeline