1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 09:18:48 +02:00

Create 'Add Task' link on project/view page

Reviewed by: epriestley

See: https://github.com/facebook/phabricator/pull/368
This commit is contained in:
Eric Stern 2013-07-26 21:36:19 +00:00 committed by epriestley
parent 8ac2da9850
commit 563f3ea236

View file

@ -29,6 +29,11 @@ final class ManiphestPeopleMenuEventListener extends PhutilEventListener {
} else if ($object instanceof PhabricatorProject) {
$href = '/maniphest/view/all/?projects='.$object->getPHID();
$actions[] = $action->setHref($href);
$actions[] = id(new PhabricatorActionView())
->setName(pht("Add Task"))
->setIcon('create')
->setHref('/maniphest/task/create/?projects=' . $object->getPHID());
}
$event->setValue('actions', $actions);