Make AphrontErrorView work on devices

Summary:
This is the last Paste UI element that doesn't work properly on tablets/phones. Make it flexible.

Also add empty states to Paste.

Test Plan: Viewed various errors, and `/uiexample/errors/`.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D3429
This commit is contained in:
epriestley
2012-09-11 09:55:27 -07:00
parent d28c591e74
commit 1b7f04914c
12 changed files with 73 additions and 86 deletions

View File

@@ -37,10 +37,12 @@ final class PhabricatorPasteListController extends PhabricatorPasteController {
switch ($filter) {
case 'my':
$query->withAuthorPHIDs(array($user->getPHID()));
$title = 'My Pastes';
$title = pht('My Pastes');
$nodata = pht("You haven't created any Pastes yet.");
break;
case 'all':
$title = 'All Pastes';
$title = pht('All Pastes');
$nodata = pht("There are no Pastes yet.");
break;
}
@@ -48,10 +50,10 @@ final class PhabricatorPasteListController extends PhabricatorPasteController {
$pager->readFromRequest($request);
$pastes = $query->executeWithCursorPager($pager);
$list = $this->buildPasteList($pastes);
$list->setHeader($title);
$list->setPager($pager);
$list->setNoDataString($nodata);
$nav->appendChild($list);