Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15460969
D11192.id26860.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
D11192.id26860.diff
View Options
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
@@ -137,6 +137,7 @@
private function renderTasksPage(PhabricatorProject $project) {
$user = $this->getRequest()->getUser();
+ $limit = 10;
$query = id(new ManiphestTaskQuery())
->setViewer($user)
@@ -144,8 +145,12 @@
->withStatuses(ManiphestTaskStatus::getOpenStatusConstants())
->setOrderBy(ManiphestTaskQuery::ORDER_PRIORITY)
->needProjectPHIDs(true)
- ->setLimit(10);
+ ->setLimit(($limit + 1));
$tasks = $query->execute();
+ $count = count($tasks);
+ if ($count == ($limit + 1)) {
+ array_pop($tasks);
+ }
$phids = mpull($tasks, 'getOwnerPHID');
$phids = array_merge(
@@ -180,10 +185,15 @@
->setHref($create_uri)
->setIcon($icon_new);
- $header = id(new PHUIHeaderView())
- ->setHeader(pht('Open Tasks'))
- ->addActionLink($button_add)
- ->addActionLink($button_view);
+ $header = id(new PHUIHeaderView())
+ ->addActionLink($button_add);
+
+ if ($count > $limit) {
+ $header->setHeader(pht('Highest Priority (some)'));
+ $header->addActionLink($button_view);
+ } else {
+ $header->setHeader(pht('Highest Priority (all)'));
+ }
$content = id(new PHUIObjectBoxView())
->setHeader($header)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 2, 3:51 AM (3 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7706381
Default Alt Text
D11192.id26860.diff (1 KB)
Attached To
Mode
D11192: Clarify Tasks listed on Project Profiles
Attached
Detach File
Event Timeline
Log In to Comment