Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15388060
D11352.id27275.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D11352.id27275.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D11352: Better text when project home has no tasks
Attached
Detach File
Event Timeline
Log In to Comment