Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/response/Aphront403Response.php
Show All 22 Lines | public function buildResponseString() { | ||||
} | } | ||||
$request = $this->getRequest(); | $request = $this->getRequest(); | ||||
$user = $request->getUser(); | $user = $request->getUser(); | ||||
$dialog = id(new AphrontDialogView()) | $dialog = id(new AphrontDialogView()) | ||||
->setUser($user) | ->setUser($user) | ||||
->setTitle(pht('403 Forbidden')) | ->setTitle(pht('403 Forbidden')) | ||||
->addCancelButton('/', pht('Peace Out')) | ->addCancelButton('/', pht('Yikes!')) | ||||
->appendParagraph($forbidden_text); | ->appendParagraph($forbidden_text); | ||||
$view = id(new PhabricatorStandardPageView()) | $view = id(new PhabricatorStandardPageView()) | ||||
->setTitle(pht('403 Forbidden')) | ->setTitle(pht('403 Forbidden')) | ||||
->setRequest($request) | ->setRequest($request) | ||||
->setDeviceReady(true) | ->setDeviceReady(true) | ||||
->appendChild($dialog); | ->appendChild($dialog); | ||||
return $view->render(); | return $view->render(); | ||||
} | } | ||||
} | } |