diff --git a/src/applications/maniphest/controller/ManiphestTaskDetailController.php b/src/applications/maniphest/controller/ManiphestTaskDetailController.php --- a/src/applications/maniphest/controller/ManiphestTaskDetailController.php +++ b/src/applications/maniphest/controller/ManiphestTaskDetailController.php @@ -281,7 +281,16 @@ ->setControlID('projects') ->setControlStyle('display: none') ->setID('projects-tokenizer') - ->setDisableBehavior(true)) + ->setDisableBehavior(true) + ->setCaption( + javelin_tag( + 'a', + array( + 'href' => '/project/create/', + 'mustcapture' => true, + 'sigil' => 'project-create', + ), + pht('Create New Project')))) ->appendChild( id(new AphrontFormFileControl()) ->setLabel(pht('File')) @@ -297,6 +306,10 @@ ->setUser($user)) ->appendChild($submit_control); + Javelin::initBehavior('project-create', array( + 'tokenizerID' => 'projects-tokenizer', + )); + $control_map = array( ManiphestTransaction::TYPE_STATUS => 'resolution', ManiphestTransaction::TYPE_OWNER => 'assign_to',