Update AphrontRequestFailure to common display libs

Summary: Moves to PHUIObjectBox, removes old CSS

Test Plan: Pull up 404 page.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D10578
This commit is contained in:
Chad Little
2014-09-26 17:40:09 -07:00
parent 3ce107fc42
commit f74082aecd
7 changed files with 32 additions and 100 deletions

View File

@@ -14,16 +14,11 @@ final class PhabricatorDisabledUserController
return new Aphront404Response();
}
$failure_view = new AphrontRequestFailureView();
$failure_view->setHeader(pht('Account Disabled'));
$failure_view->appendChild(phutil_tag('p', array(), pht(
'Your account has been disabled.')));
return $this->buildStandardPageResponse(
$failure_view,
array(
'title' => pht('Account Disabled'),
));
return id(new AphrontDialogView())
->setUser($user)
->setTitle(pht('Account Disabled'))
->addCancelButton('/logout/', pht('Okay'))
->appendParagraph(pht('Your account has been disabled.'));
}
}