Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/controller/ManiphestTaskEditController.php
Show First 20 Lines • Show All 661 Lines • ▼ Show 20 Lines | if ($task->getID()) { | ||||
$page_objects = array($task->getPHID()); | $page_objects = array($task->getPHID()); | ||||
} else { | } else { | ||||
$page_objects = array(); | $page_objects = array(); | ||||
} | } | ||||
$crumbs = $this->buildApplicationCrumbs(); | $crumbs = $this->buildApplicationCrumbs(); | ||||
if ($task->getID()) { | if ($task->getID()) { | ||||
$crumbs->addCrumb( | $crumbs->addTextCrumb('T'.$task->getID(), '/T'.$task->getID()); | ||||
id(new PhabricatorCrumbView()) | |||||
->setName('T'.$task->getID()) | |||||
->setHref('/T'.$task->getID())); | |||||
} | } | ||||
$crumbs->addCrumb( | $crumbs->addTextCrumb($header_name); | ||||
id(new PhabricatorCrumbView()) | |||||
->setName($header_name)); | |||||
return $this->buildApplicationPage( | return $this->buildApplicationPage( | ||||
array( | array( | ||||
$crumbs, | $crumbs, | ||||
$form_box, | $form_box, | ||||
$preview, | $preview, | ||||
), | ), | ||||
array( | array( | ||||
'title' => $header_name, | 'title' => $header_name, | ||||
'pageObjects' => $page_objects, | 'pageObjects' => $page_objects, | ||||
'device' => true, | 'device' => true, | ||||
)); | )); | ||||
} | } | ||||
} | } |