Differential D20967 Diff 49959 src/applications/maniphest/controller/ManiphestTaskDetailController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/controller/ManiphestTaskDetailController.php
Show First 20 Lines • Show All 330 Lines • ▼ Show 20 Lines | private function buildCurtain( | ||||
$curtain->addAction($task_submenu); | $curtain->addAction($task_submenu); | ||||
$relationship_submenu = $relationship_list->newActionMenu(); | $relationship_submenu = $relationship_list->newActionMenu(); | ||||
if ($relationship_submenu) { | if ($relationship_submenu) { | ||||
$curtain->addAction($relationship_submenu); | $curtain->addAction($relationship_submenu); | ||||
} | } | ||||
$viewer_phid = $viewer->getPHID(); | |||||
$owner_phid = $task->getOwnerPHID(); | $owner_phid = $task->getOwnerPHID(); | ||||
$author_phid = $task->getAuthorPHID(); | $author_phid = $task->getAuthorPHID(); | ||||
$handles = $viewer->loadHandles(array($owner_phid, $author_phid)); | $handles = $viewer->loadHandles(array($owner_phid, $author_phid)); | ||||
$assigned_refs = id(new PHUICurtainObjectRefListView()) | $assigned_refs = id(new PHUICurtainObjectRefListView()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->setEmptyMessage(pht('None')); | ->setEmptyMessage(pht('None')); | ||||
if ($owner_phid) { | if ($owner_phid) { | ||||
$assigned_ref = $assigned_refs->newObjectRefView() | $assigned_ref = $assigned_refs->newObjectRefView() | ||||
->setHandle($handles[$owner_phid]); | ->setHandle($handles[$owner_phid]) | ||||
->setHighlighted($owner_phid === $viewer_phid); | |||||
} | } | ||||
$curtain->newPanel() | $curtain->newPanel() | ||||
->setHeaderText(pht('Assigned To')) | ->setHeaderText(pht('Assigned To')) | ||||
->appendChild($assigned_refs); | ->appendChild($assigned_refs); | ||||
$author_refs = id(new PHUICurtainObjectRefListView()) | $author_refs = id(new PHUICurtainObjectRefListView()) | ||||
->setViewer($viewer); | ->setViewer($viewer); | ||||
$author_ref = $author_refs->newObjectRefView() | $author_ref = $author_refs->newObjectRefView() | ||||
->setHandle($handles[$author_phid]) | ->setHandle($handles[$author_phid]) | ||||
->setEpoch($task->getDateCreated()); | ->setEpoch($task->getDateCreated()) | ||||
->setHighlighted($author_phid === $viewer_phid); | |||||
$curtain->newPanel() | $curtain->newPanel() | ||||
->setHeaderText(pht('Authored By')) | ->setHeaderText(pht('Authored By')) | ||||
->appendChild($author_refs); | ->appendChild($author_refs); | ||||
return $curtain; | return $curtain; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 460 Lines • Show Last 20 Lines |