1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-19 11:11:10 +01:00

[Redesign] Update Phame UI

Summary: Ref T8099, Updates Phame to be more ObjectBox-y

Test Plan: Review Phame in random ways

Reviewers: btrahan, epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T8099

Differential Revision: https://secure.phabricator.com/D13520
This commit is contained in:
Chad Little 2015-07-01 16:06:47 -07:00
parent ea520263a6
commit 997ba9ddc5
3 changed files with 12 additions and 9 deletions

View file

@ -107,9 +107,9 @@ abstract class PhameController extends PhabricatorController {
}
if (empty($stories)) {
return id(new PHUIInfoView())
->setSeverity(PHUIInfoView::SEVERITY_NODATA)
->appendChild($nodata);
return id(new PHUIBoxView())
->appendChild($nodata)
->addClass('mlt mlb msr msl');
}
return $stories;

View file

@ -38,13 +38,17 @@ final class PhameBlogListController extends PhameController {
$blog_list = $this->renderBlogList($blogs, $user, $nodata);
$blog_list->setPager($pager);
$box = id (new PHUIObjectBoxView())
->setHeaderText($title)
->setObjectList($blog_list);
$crumbs = $this->buildApplicationCrumbs();
$crumbs->addTextCrumb($title, $this->getApplicationURI());
$nav->appendChild(
array(
$crumbs,
$blog_list,
$box,
));
return $this->buildApplicationPage(

View file

@ -18,6 +18,7 @@ final class PhamePostListController extends PhameController {
->setViewer($user);
$nav = $this->renderSideNavFilterView();
$nodata = null;
switch ($this->filter) {
case 'draft':
@ -46,7 +47,7 @@ final class PhamePostListController extends PhameController {
} else {
$nodata = pht('%s has not written any posts.', $blogger);
}
$title = pht('Posts By %s', $blogger);
$title = pht('Posts by %s', $blogger);
break;
case 'all':
$nodata = pht('There are no visible posts.');
@ -64,13 +65,11 @@ final class PhamePostListController extends PhameController {
require_celerity_resource('phame-css');
$post_list = $this->renderPostList($posts, $user, $nodata);
$post_list = id(new PHUIBoxView())
->addPadding(PHUI::PADDING_LARGE)
->addClass('phame-post-list')
$post_list = id(new PHUIObjectBoxView())
->setHeaderText($title)
->appendChild($post_list);
$crumbs = $this->buildApplicationCrumbs();
$crumbs->setBorder(true);
$crumbs->addTextCrumb($title, $this->getApplicationURI());
$nav->appendChild(