Changeset View
Changeset View
Standalone View
Standalone View
src/applications/paste/controller/PhabricatorPasteViewController.php
| Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | public function handleRequest(AphrontRequest $request) { | ||||
| require_celerity_resource('paste-css'); | require_celerity_resource('paste-css'); | ||||
| $source_code = phutil_tag( | $source_code = phutil_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'class' => 'container-of-paste', | 'class' => 'container-of-paste', | ||||
| ), | ), | ||||
| $source_code); | $source_code); | ||||
| $monogram = $paste->getMonogram(); | |||||
| $crumbs = $this->buildApplicationCrumbs() | $crumbs = $this->buildApplicationCrumbs() | ||||
| ->addTextCrumb('P'.$paste->getID(), '/P'.$paste->getID()); | ->addTextCrumb($monogram, '/'.$monogram); | ||||
| $timeline = $this->buildTransactionTimeline( | $timeline = $this->buildTransactionTimeline( | ||||
| $paste, | $paste, | ||||
| new PhabricatorPasteTransactionQuery()); | new PhabricatorPasteTransactionQuery()); | ||||
| $comment_view = id(new PhabricatorPasteEditEngine()) | $comment_view = id(new PhabricatorPasteEditEngine()) | ||||
| ->setViewer($viewer) | ->setViewer($viewer) | ||||
| ->buildEditEngineCommentView($paste); | ->buildEditEngineCommentView($paste); | ||||
| $timeline->setQuoteRef($monogram); | |||||
| $comment_view->setTransactionTimeline($timeline); | |||||
| return $this->newPage() | return $this->newPage() | ||||
| ->setTitle($paste->getFullName()) | ->setTitle($paste->getFullName()) | ||||
| ->setCrumbs($crumbs) | ->setCrumbs($crumbs) | ||||
| ->setPageObjectPHIDs( | ->setPageObjectPHIDs( | ||||
| array( | array( | ||||
| $paste->getPHID(), | $paste->getPHID(), | ||||
| )) | )) | ||||
| ->appendChild( | ->appendChild( | ||||
| ▲ Show 20 Lines • Show All 99 Lines • Show Last 20 Lines | |||||