mirror of
https://we.phorge.it/source/phorge.git
synced 2025-03-28 12:08:14 +01:00
Summary: Refresh the 404 text since it hasn't been updated in a while, and swap the "Save Query" button back to grey since I never got used to blue. Test Plan: Hit 404 page, saved a query. Differential Revision: https://secure.phabricator.com/D20734
34 lines
876 B
PHP
34 lines
876 B
PHP
<?php
|
|
|
|
final class Aphront404Response extends AphrontHTMLResponse {
|
|
|
|
public function getHTTPResponseCode() {
|
|
return 404;
|
|
}
|
|
|
|
public function buildResponseString() {
|
|
$request = $this->getRequest();
|
|
$viewer = $request->getViewer();
|
|
|
|
$dialog = id(new AphrontDialogView())
|
|
->setViewer($viewer)
|
|
->setTitle(pht('404 Not Found'))
|
|
->addCancelButton('/', pht('Return to Charted Waters'))
|
|
->appendParagraph(
|
|
pht(
|
|
'You arrive at your destination, but there is nothing here.'))
|
|
->appendParagraph(
|
|
pht(
|
|
'Perhaps the real treasure was the friends you made '.
|
|
'along the way.'));
|
|
|
|
$view = id(new PhabricatorStandardPageView())
|
|
->setTitle(pht('404 Not Found'))
|
|
->setRequest($request)
|
|
->setDeviceReady(true)
|
|
->appendChild($dialog);
|
|
|
|
return $view->render();
|
|
}
|
|
|
|
}
|