Differential D11355 Diff 27283 src/applications/transactions/controller/PhabricatorApplicationTransactionCommentHistoryController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/controller/PhabricatorApplicationTransactionCommentHistoryController.php
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | $obj_handle = id(new PhabricatorHandleQuery()) | ||||
->setViewer($user) | ->setViewer($user) | ||||
->withPHIDs(array($obj_phid)) | ->withPHIDs(array($obj_phid)) | ||||
->executeOne(); | ->executeOne(); | ||||
$view = id(new PhabricatorApplicationTransactionView()) | $view = id(new PhabricatorApplicationTransactionView()) | ||||
->setUser($user) | ->setUser($user) | ||||
->setObjectPHID($obj_phid) | ->setObjectPHID($obj_phid) | ||||
->setTransactions($xactions) | ->setTransactions($xactions) | ||||
->setShowEditActions(false); | ->setShowEditActions(false) | ||||
->setHideCommentOptions(true); | |||||
$dialog = id(new AphrontDialogView()) | $dialog = id(new AphrontDialogView()) | ||||
->setUser($user) | ->setUser($user) | ||||
->setWidth(AphrontDialogView::WIDTH_FULL) | ->setWidth(AphrontDialogView::WIDTH_FULL) | ||||
->setFlush(true) | ->setFlush(true) | ||||
->setTitle(pht('Comment History')); | ->setTitle(pht('Comment History')); | ||||
$dialog->appendChild($view); | $dialog->appendChild($view); | ||||
$dialog | $dialog | ||||
->addCancelButton($obj_handle->getURI()); | ->addCancelButton($obj_handle->getURI()); | ||||
return id(new AphrontDialogResponse())->setDialog($dialog); | return id(new AphrontDialogResponse())->setDialog($dialog); | ||||
} | } | ||||
} | } |