diff --git a/src/applications/project/controller/PhabricatorProjectBoardManageController.php b/src/applications/project/controller/PhabricatorProjectBoardManageController.php index 4607b50c2a..5c71dcfb61 100644 --- a/src/applications/project/controller/PhabricatorProjectBoardManageController.php +++ b/src/applications/project/controller/PhabricatorProjectBoardManageController.php @@ -31,6 +31,7 @@ final class PhabricatorProjectBoardManageController $board_id = $board->getID(); $header = $this->buildHeaderView($board); + $curtain = $this->buildCurtainView($board); $crumbs = $this->buildApplicationCrumbs(); $crumbs->addTextCrumb(pht('Workboard'), "/project/board/{$board_id}/"); @@ -46,7 +47,8 @@ final class PhabricatorProjectBoardManageController ->setHeader($header) ->addClass('project-view-home') ->addClass('project-view-people-home') - ->setFooter($columns_list); + ->setCurtain($curtain) + ->setMainColumn($columns_list); $title = array( pht('Manage Workboard'), @@ -63,29 +65,35 @@ final class PhabricatorProjectBoardManageController private function buildHeaderView(PhabricatorProject $board) { $viewer = $this->getViewer(); + $header = id(new PHUIHeaderView()) + ->setHeader(pht('Workboard: %s', $board->getDisplayName())) + ->setUser($viewer); + + return $header; + } + + private function buildCurtainView(PhabricatorProject $board) { + $viewer = $this->getViewer(); + $id = $board->getID(); + + $curtain = $this->newCurtainView(); + $can_edit = PhabricatorPolicyFilter::hasCapability( $viewer, $board, PhabricatorPolicyCapability::CAN_EDIT); - $id = $board->getID(); $disable_uri = $this->getApplicationURI("board/{$id}/disable/"); - $button = id(new PHUIButtonView()) - ->setTag('a') - ->setIcon('fa-ban') - ->setText(pht('Disable Board')) - ->setHref($disable_uri) - ->setDisabled(!$can_edit) - ->setWorkflow(true); + $curtain->addAction( + id(new PhabricatorActionView()) + ->setIcon('fa-ban') + ->setName(pht('Disable Workboard')) + ->setHref($disable_uri) + ->setDisabled(!$can_edit) + ->setWorkflow(true)); - $header = id(new PHUIHeaderView()) - ->setHeader(pht('Workboard: %s', $board->getDisplayName())) - ->setUser($viewer) - ->setProfileHeader(true) - ->addActionLink($button); - - return $header; + return $curtain; } private function buildColumnsList( @@ -126,6 +134,7 @@ final class PhabricatorProjectBoardManageController return id(new PHUIObjectBoxView()) ->setHeaderText(pht('Columns')) + ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) ->setObjectList($view); } diff --git a/src/applications/project/controller/PhabricatorProjectColumnDetailController.php b/src/applications/project/controller/PhabricatorProjectColumnDetailController.php index 56eb16613f..24efec5ebb 100644 --- a/src/applications/project/controller/PhabricatorProjectColumnDetailController.php +++ b/src/applications/project/controller/PhabricatorProjectColumnDetailController.php @@ -75,8 +75,7 @@ final class PhabricatorProjectColumnDetailController $header = id(new PHUIHeaderView()) ->setHeader(pht('Column: %s', $column->getDisplayName())) - ->setUser($viewer) - ->setProfileHeader(true); + ->setUser($viewer); if ($column->isHidden()) { $header->setStatus('fa-ban', 'dark', pht('Hidden'));