Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/controller/PhabricatorFileInfoController.php
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | $object_box = id(new PHUIObjectBoxView()) | ||||
->setHeader($header); | ->setHeader($header); | ||||
$this->buildPropertyViews($object_box, $file, $actions); | $this->buildPropertyViews($object_box, $file, $actions); | ||||
return $this->buildApplicationPage( | return $this->buildApplicationPage( | ||||
array( | array( | ||||
$crumbs, | $crumbs, | ||||
$object_box, | $object_box, | ||||
$timeline | $timeline, | ||||
), | ), | ||||
array( | array( | ||||
'title' => $file->getName(), | 'title' => $file->getName(), | ||||
'pageObjects' => array($file->getPHID()), | 'pageObjects' => array($file->getPHID()), | ||||
)); | )); | ||||
} | } | ||||
private function buildTransactionView( | private function buildTransactionView( | ||||
Show All 31 Lines | $add_comment_form = id(new PhabricatorApplicationTransactionCommentView()) | ||||
->setObjectPHID($file->getPHID()) | ->setObjectPHID($file->getPHID()) | ||||
->setDraft($draft) | ->setDraft($draft) | ||||
->setHeaderText($add_comment_header) | ->setHeaderText($add_comment_header) | ||||
->setAction($this->getApplicationURI('/comment/'.$file->getID().'/')) | ->setAction($this->getApplicationURI('/comment/'.$file->getID().'/')) | ||||
->setSubmitButtonName(pht('Add Comment')); | ->setSubmitButtonName(pht('Add Comment')); | ||||
return array( | return array( | ||||
$timeline, | $timeline, | ||||
$add_comment_form); | $add_comment_form, | ||||
); | |||||
} | } | ||||
private function buildActionView(PhabricatorFile $file) { | private function buildActionView(PhabricatorFile $file) { | ||||
$request = $this->getRequest(); | $request = $this->getRequest(); | ||||
$viewer = $request->getUser(); | $viewer = $request->getUser(); | ||||
$id = $file->getID(); | $id = $file->getID(); | ||||
▲ Show 20 Lines • Show All 173 Lines • Show Last 20 Lines |