PHUIPropertyListView
Summary: This builds out and implements PHUIPropertyListView (container) and PHUIPropertyListItemView (section) as well as adding tabs. Test Plan: Tested each page I edited with the exception of Releeph and Phortune, though those changes look ok to me diff wise. Updated examples page with tabs. Reviewers: epriestley, btrahan Reviewed By: epriestley CC: Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D7283
This commit is contained in:
@@ -32,7 +32,7 @@ final class PhamePostViewController extends PhameController {
|
||||
$post->getBloggerPHID(),
|
||||
));
|
||||
$actions = $this->renderActions($post, $user);
|
||||
$properties = $this->renderProperties($post, $user);
|
||||
$properties = $this->renderProperties($post, $user, $actions);
|
||||
|
||||
$crumbs = $this->buildApplicationCrumbs();
|
||||
$crumbs->setActionList($actions);
|
||||
@@ -50,8 +50,7 @@ final class PhamePostViewController extends PhameController {
|
||||
|
||||
$object_box = id(new PHUIObjectBoxView())
|
||||
->setHeader($header)
|
||||
->setActionList($actions)
|
||||
->setPropertyList($properties);
|
||||
->addPropertyList($properties);
|
||||
|
||||
if ($post->isDraft()) {
|
||||
$object_box->appendChild(
|
||||
@@ -167,11 +166,13 @@ final class PhamePostViewController extends PhameController {
|
||||
|
||||
private function renderProperties(
|
||||
PhamePost $post,
|
||||
PhabricatorUser $user) {
|
||||
PhabricatorUser $user,
|
||||
PhabricatorActionListView $actions) {
|
||||
|
||||
$properties = id(new PhabricatorPropertyListView())
|
||||
$properties = id(new PHUIPropertyListView())
|
||||
->setUser($user)
|
||||
->setObject($post);
|
||||
->setObject($post)
|
||||
->setActionList($actions);
|
||||
|
||||
$properties->addProperty(
|
||||
pht('Blog'),
|
||||
|
||||
Reference in New Issue
Block a user