Differential D12210 Diff 29358 src/applications/countdown/controller/PhabricatorCountdownViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/countdown/controller/PhabricatorCountdownViewController.php
Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | private function buildActionListView(PhabricatorCountdown $countdown) { | ||||
return $view; | return $view; | ||||
} | } | ||||
private function buildPropertyListView( | private function buildPropertyListView( | ||||
PhabricatorCountdown $countdown, | PhabricatorCountdown $countdown, | ||||
PhabricatorActionListView $actions) { | PhabricatorActionListView $actions) { | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$handles = $viewer->loadHandles(array($countdown->getAuthorPHID())); | |||||
$view = id(new PHUIPropertyListView()) | $view = id(new PHUIPropertyListView()) | ||||
->setUser($viewer) | ->setUser($viewer) | ||||
->setActionList($actions); | ->setActionList($actions); | ||||
$view->addProperty( | $view->addProperty( | ||||
pht('Author'), | pht('Author'), | ||||
$handles[$countdown->getAuthorPHID()]->renderLink()); | $viewer->renderHandle($countdown->getAuthorPHID())); | ||||
return $view; | return $view; | ||||
} | } | ||||
} | } |