diff --git a/src/applications/project/controller/PhabricatorProjectBoardController.php b/src/applications/project/controller/PhabricatorProjectBoardController.php index 4473ee70aa..8aa5792bdc 100644 --- a/src/applications/project/controller/PhabricatorProjectBoardController.php +++ b/src/applications/project/controller/PhabricatorProjectBoardController.php @@ -19,6 +19,7 @@ final class PhabricatorProjectBoardController $project = id(new PhabricatorProjectQuery()) ->setViewer($viewer) + ->needImages(true) ->withIDs(array($this->id)) ->executeOne(); if (!$project) { @@ -133,19 +134,32 @@ final class PhabricatorProjectBoardController ->setUser($viewer) ->addAction( id(new PhabricatorActionView()) - ->setName(pht('Add Column/Milestone/Sprint')) + ->setName(pht('Add Column')) ->setHref($this->getApplicationURI('board/'.$this->id.'/edit/')) ->setIcon('create') ->setDisabled(!$can_edit) ->setWorkflow(!$can_edit)); $plist = id(new PHUIPropertyListView()); + // TODO: Need this to get actions to render. - $plist->addProperty(pht('Ignore'), pht('This Property')); + $plist->addProperty( + pht('Project Boards'), + phutil_tag( + 'em', + array(), + pht( + 'This feature is beta, but should mostly work.'))); $plist->setActionList($actions); - $header = id(new PHUIObjectBoxView()) - ->setHeaderText($project->getName()) + $header = id(new PHUIHeaderView()) + ->setHeader($project->getName()) + ->setUser($viewer) + ->setImage($project->getProfileImageURI()) + ->setPolicyObject($project); + + $box = id(new PHUIObjectBoxView()) + ->setHeader($header) ->addPropertyList($plist); $board_box = id(new PHUIBoxView()) @@ -155,7 +169,7 @@ final class PhabricatorProjectBoardController return $this->buildApplicationPage( array( $crumbs, - $header, + $box, $board_box, ), array( diff --git a/src/applications/project/controller/PhabricatorProjectProfileController.php b/src/applications/project/controller/PhabricatorProjectProfileController.php index f8981f210d..4086af88e8 100644 --- a/src/applications/project/controller/PhabricatorProjectProfileController.php +++ b/src/applications/project/controller/PhabricatorProjectProfileController.php @@ -226,13 +226,18 @@ final class PhabricatorProjectProfileController } $view->addAction($action); - $view->addAction( id(new PhabricatorActionView()) ->setName(pht('View History')) ->setHref($this->getApplicationURI("history/{$id}/")) ->setIcon('transcript')); + $view->addAction( + id(new PhabricatorActionView()) + ->setName(pht('View Board (Beta)')) + ->setHref($this->getApplicationURI("board/{$id}/")) + ->setIcon('project')); + return $view; }