1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-02 02:40:58 +01:00

ObjectBoxes for Diffusion

Summary: Two missed Object Box cases in Diffusion.

Test Plan: View an individual file in Diffusion

Reviewers: epriestley, btrahan

Reviewed By: epriestley

CC: Korvin, aran

Differential Revision: https://secure.phabricator.com/D7187
This commit is contained in:
Chad Little 2013-10-01 14:35:31 -07:00
parent 89df6f7bfc
commit adb3488f4a
2 changed files with 12 additions and 16 deletions

View file

@ -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,
);
}
}

View file

@ -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) {