Changeset View
Changeset View
Standalone View
Standalone View
src/applications/paste/controller/PhabricatorPasteViewController.php
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | $source_code = id(new PHUIBoxView()) | ||||
->appendChild($source_code) | ->appendChild($source_code) | ||||
->setBorder(true) | ->setBorder(true) | ||||
->addMargin(PHUI::MARGIN_LARGE_LEFT) | ->addMargin(PHUI::MARGIN_LARGE_LEFT) | ||||
->addMargin(PHUI::MARGIN_LARGE_RIGHT) | ->addMargin(PHUI::MARGIN_LARGE_RIGHT) | ||||
->addMargin(PHUI::MARGIN_LARGE_TOP); | ->addMargin(PHUI::MARGIN_LARGE_TOP); | ||||
$crumbs = $this->buildApplicationCrumbs($this->buildSideNavView()) | $crumbs = $this->buildApplicationCrumbs($this->buildSideNavView()) | ||||
->setActionList($actions) | ->setActionList($actions) | ||||
->addCrumb( | ->addTextCrumb('P'.$paste->getID(), '/P'.$paste->getID()); | ||||
id(new PhabricatorCrumbView()) | |||||
->setName('P'.$paste->getID()) | |||||
->setHref('/P'.$paste->getID())); | |||||
$xactions = id(new PhabricatorPasteTransactionQuery()) | $xactions = id(new PhabricatorPasteTransactionQuery()) | ||||
->setViewer($request->getUser()) | ->setViewer($request->getUser()) | ||||
->withObjectPHIDs(array($paste->getPHID())) | ->withObjectPHIDs(array($paste->getPHID())) | ||||
->execute(); | ->execute(); | ||||
$engine = id(new PhabricatorMarkupEngine()) | $engine = id(new PhabricatorMarkupEngine()) | ||||
->setViewer($user); | ->setViewer($user); | ||||
▲ Show 20 Lines • Show All 138 Lines • Show Last 20 Lines |