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

Prompt to adding a project if none in Maniphest

Summary: Adds 'Add Project...' if no projects present on Maniphest items. Also - I can't seem to get a dialog to pop, what am I missing? Fixes T3308

Test Plan: Click add project, get edit form.

Reviewers: epriestley, btrahan

Reviewed By: epriestley

CC: aran, Korvin

Maniphest Tasks: T3308

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

+38 -19
+7 -7
src/__celerity_resource_map__.php
··· 3275 3275 ), 3276 3276 'phabricator-project-tag-css' => 3277 3277 array( 3278 - 'uri' => '/res/1b5efcb2/rsrc/css/application/projects/project-tag.css', 3278 + 'uri' => '/res/383b8c30/rsrc/css/application/projects/project-tag.css', 3279 3279 'type' => 'css', 3280 3280 'requires' => 3281 3281 array( ··· 4199 4199 'uri' => '/res/pkg/a9f14d76/javelin.pkg.js', 4200 4200 'type' => 'js', 4201 4201 ), 4202 - '6b1fccc6' => 4202 + '03ab92cf' => 4203 4203 array( 4204 4204 'name' => 'maniphest.pkg.css', 4205 4205 'symbols' => ··· 4209 4209 2 => 'aphront-attached-file-view-css', 4210 4210 3 => 'phabricator-project-tag-css', 4211 4211 ), 4212 - 'uri' => '/res/pkg/6b1fccc6/maniphest.pkg.css', 4212 + 'uri' => '/res/pkg/03ab92cf/maniphest.pkg.css', 4213 4213 'type' => 'css', 4214 4214 ), 4215 4215 '1621e522' => ··· 4229 4229 ), 4230 4230 'reverse' => 4231 4231 array( 4232 - 'aphront-attached-file-view-css' => '6b1fccc6', 4232 + 'aphront-attached-file-view-css' => '03ab92cf', 4233 4233 'aphront-dialog-view-css' => '8e459ff2', 4234 4234 'aphront-error-view-css' => '8e459ff2', 4235 4235 'aphront-form-view-css' => '8e459ff2', ··· 4328 4328 'javelin-vector' => 'a9f14d76', 4329 4329 'javelin-workflow' => 'a9f14d76', 4330 4330 'lightbox-attachment-css' => '8e459ff2', 4331 - 'maniphest-task-summary-css' => '6b1fccc6', 4332 - 'maniphest-transaction-detail-css' => '6b1fccc6', 4331 + 'maniphest-task-summary-css' => '03ab92cf', 4332 + 'maniphest-transaction-detail-css' => '03ab92cf', 4333 4333 'phabricator-action-list-view-css' => '8e459ff2', 4334 4334 'phabricator-application-launch-view-css' => '8e459ff2', 4335 4335 'phabricator-busy' => '98f60e3f', ··· 4358 4358 'phabricator-object-selector-css' => 'dd27a69b', 4359 4359 'phabricator-phtize' => '98f60e3f', 4360 4360 'phabricator-prefab' => '98f60e3f', 4361 - 'phabricator-project-tag-css' => '6b1fccc6', 4361 + 'phabricator-project-tag-css' => '03ab92cf', 4362 4362 'phabricator-property-list-view-css' => '8e459ff2', 4363 4363 'phabricator-remarkup-css' => '8e459ff2', 4364 4364 'phabricator-shaped-request' => '9488bb69',
+6 -8
src/applications/maniphest/view/ManiphestTaskListView.php
··· 86 86 $item->addSigil('maniphest-task'); 87 87 } 88 88 89 - if ($task->getProjectPHIDs()) { 90 - $projects_view = new ManiphestTaskProjectsView(); 91 - $projects_view->setHandles( 92 - array_select_keys( 93 - $handles, 94 - $task->getProjectPHIDs())); 89 + $projects_view = new ManiphestTaskProjectsView(); 90 + $projects_view->setHandles( 91 + array_select_keys( 92 + $handles, 93 + $task->getProjectPHIDs())); 95 94 96 - $item->addAttribute($projects_view); 97 - } 95 + $item->addAttribute($projects_view); 98 96 99 97 $item->setMetadata( 100 98 array(
+15 -4
src/applications/maniphest/view/ManiphestTaskProjectsView.php
··· 20 20 $show = array_slice($this->handles, 0, 2); 21 21 22 22 $tags = array(); 23 - foreach ($show as $handle) { 23 + if ($show) { 24 + foreach ($show as $handle) { 25 + $tags[] = phutil_tag( 26 + 'a', 27 + array( 28 + 'href' => $handle->getURI(), 29 + 'class' => 'phabricator-project-tag', 30 + ), 31 + phutil_utf8_shorten($handle->getName(), 24)); 32 + } 33 + } else { 24 34 $tags[] = phutil_tag( 25 35 'a', 26 36 array( 27 - 'href' => $handle->getURI(), 28 - 'class' => 'phabricator-project-tag', 37 + 'class' => 'phabricator-project-tag phabricator-project-tag-grey', 38 + 'href' => '/maniphest/view/all/?s&projects='. 39 + ManiphestTaskOwner::PROJECT_NO_PROJECT 29 40 ), 30 - phutil_utf8_shorten($handle->getName(), 24)); 41 + pht('No Project')); 31 42 } 32 43 33 44 if (count($this->handles) > 2) {
+10
webroot/rsrc/css/application/projects/project-tag.css
··· 23 23 white-space: nowrap; 24 24 } 25 25 26 + .phabricator-project-tag.phabricator-project-tag-grey { 27 + border: 1px solid #ccc; 28 + background: #f7f7f7; 29 + color: #888; 30 + } 31 + 32 + .phabricator-project-tag.phabricator-project-tag-grey:hover { 33 + background: #e7e7e7; 34 + } 35 + 26 36 .phabricator-project-tag:last-child { 27 37 margin-right: 0px; 28 38 }