Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/controller/ManiphestController.php
| Show All 31 Lines | protected function buildApplicationCrumbs() { | ||||
| id(new ManiphestEditEngine()) | id(new ManiphestEditEngine()) | ||||
| ->setViewer($this->getViewer()) | ->setViewer($this->getViewer()) | ||||
| ->addActionToCrumbs($crumbs); | ->addActionToCrumbs($crumbs); | ||||
| return $crumbs; | return $crumbs; | ||||
| } | } | ||||
| public function renderSingleTask(ManiphestTask $task) { | |||||
epriestley: (This lost all its callers when I got rid of the global list-view drag-and-drop priority… | |||||
| $request = $this->getRequest(); | |||||
| $user = $request->getUser(); | |||||
| $phids = $task->getProjectPHIDs(); | |||||
| if ($task->getOwnerPHID()) { | |||||
| $phids[] = $task->getOwnerPHID(); | |||||
| } | |||||
| $handles = id(new PhabricatorHandleQuery()) | |||||
| ->setViewer($user) | |||||
| ->withPHIDs($phids) | |||||
| ->execute(); | |||||
| $view = id(new ManiphestTaskListView()) | |||||
| ->setUser($user) | |||||
| ->setShowBatchControls(true) | |||||
| ->setHandles($handles) | |||||
| ->setTasks(array($task)); | |||||
| return $view; | |||||
| } | |||||
| final protected function newTaskGraphDropdownMenu( | final protected function newTaskGraphDropdownMenu( | ||||
| ManiphestTask $task, | ManiphestTask $task, | ||||
| $has_parents, | $has_parents, | ||||
| $has_subtasks, | $has_subtasks, | ||||
| $include_standalone) { | $include_standalone) { | ||||
| $viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
| $parents_uri = urisprintf( | $parents_uri = urisprintf( | ||||
| ▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines | |||||
(This lost all its callers when I got rid of the global list-view drag-and-drop priority behavior in D20263, it just didn't get cleaned up in that change.)