Differential D19560 Diff 46768 src/applications/phriction/controller/PhrictionDocumentController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phriction/controller/PhrictionDocumentController.php
Show First 20 Lines • Show All 248 Lines • ▼ Show 20 Lines | final class PhrictionDocumentController | ||||
} | } | ||||
private function buildPropertyListView( | private function buildPropertyListView( | ||||
PhrictionDocument $document, | PhrictionDocument $document, | ||||
PhrictionContent $content, | PhrictionContent $content, | ||||
$slug) { | $slug) { | ||||
$viewer = $this->getRequest()->getUser(); | $viewer = $this->getViewer(); | ||||
$view = id(new PHUIPropertyListView()) | $view = id(new PHUIPropertyListView()) | ||||
->setUser($viewer) | ->setUser($viewer) | ||||
->setObject($document); | ->setObject($document); | ||||
$view->addProperty( | $view->addProperty( | ||||
pht('Last Author'), | pht('Last Author'), | ||||
$viewer->renderHandle($content->getAuthorPHID())); | $viewer->renderHandle($content->getAuthorPHID())); | ||||
$view->addProperty( | |||||
pht('Last Edited'), | |||||
phabricator_datetime($content->getDateCreated(), $viewer)); | |||||
return $view; | return $view; | ||||
} | } | ||||
private function buildActionView( | private function buildActionView( | ||||
PhabricatorUser $viewer, | PhabricatorUser $viewer, | ||||
PhrictionDocument $document) { | PhrictionDocument $document) { | ||||
$can_edit = PhabricatorPolicyFilter::hasCapability( | $can_edit = PhabricatorPolicyFilter::hasCapability( | ||||
$viewer, | $viewer, | ||||
▲ Show 20 Lines • Show All 225 Lines • Show Last 20 Lines |