diff --git a/src/applications/diffusion/controller/DiffusionBrowseController.php b/src/applications/diffusion/controller/DiffusionBrowseController.php index ea960bdae0..b30dfe9ae0 100644 --- a/src/applications/diffusion/controller/DiffusionBrowseController.php +++ b/src/applications/diffusion/controller/DiffusionBrowseController.php @@ -190,13 +190,10 @@ abstract class DiffusionBrowseController extends DiffusionController { $handles = $this->loadViewerHandles($phids); $view->setHandles($handles); - $header = id(new PHUIHeaderView()) - ->setHeader(pht('Pending Differential Revisions')); + return id(new PHUIObjectBoxView()) + ->setHeaderText(pht('Pending Differential Revisions')) + ->appendChild($view); - return array( - $header, - $view, - ); } } diff --git a/src/applications/diffusion/controller/DiffusionBrowseFileController.php b/src/applications/diffusion/controller/DiffusionBrowseFileController.php index 52dc63ab0b..6a5afdd16a 100644 --- a/src/applications/diffusion/controller/DiffusionBrowseFileController.php +++ b/src/applications/diffusion/controller/DiffusionBrowseFileController.php @@ -98,23 +98,22 @@ final class DiffusionBrowseFileController extends DiffusionBrowseController { require_celerity_resource('diffusion-source-css'); - $object_box = id(new PHUIObjectBoxView()) - ->setHeader($this->buildHeaderView($drequest)) - ->setActionList($this->buildActionView($drequest)) - ->setPropertyList($this->buildPropertyView($drequest)); - // Render the page. - $content = array(); - - $content[] = $this->buildHeaderView($drequest); $view = $this->buildActionView($drequest); - $content[] = $this->enrichActionView( + $action_list = $this->enrichActionView( $view, $drequest, $show_blame, $show_color, $binary_uri); - $content[] = $this->buildPropertyView($drequest); + + $object_box = id(new PHUIObjectBoxView()) + ->setHeader($this->buildHeaderView($drequest)) + ->setActionList($action_list) + ->setPropertyList($this->buildPropertyView($drequest)); + + $content = array(); + $content[] = $object_box; $follow = $request->getStr('follow'); if ($follow) {