Add objectheaders to new View
Summary: This adds the 'PHUIObjectBox' to nearly every place that should get it. I need to comb through Diffusion a little more. I've left Differential mostly alone, but may decide to do it anyways this weekend. I'm sure I missed something else, but these are easy enough to update. Test Plan: tested each new layout. Reviewers: epriestley, btrahan Reviewed By: epriestley CC: Korvin, aran Differential Revision: https://secure.phabricator.com/D7162
This commit is contained in:
@@ -49,12 +49,15 @@ final class PhabricatorFileInfoController extends PhabricatorFileController {
|
||||
->setName('F'.$file->getID())
|
||||
->setHref($this->getApplicationURI("/info/{$phid}/")));
|
||||
|
||||
$object_box = id(new PHUIObjectBoxView())
|
||||
->setHeader($header)
|
||||
->addContent($actions)
|
||||
->addContent($properties);
|
||||
|
||||
return $this->buildApplicationPage(
|
||||
array(
|
||||
$crumbs,
|
||||
$header,
|
||||
$actions,
|
||||
$properties,
|
||||
$object_box,
|
||||
$timeline
|
||||
),
|
||||
array(
|
||||
@@ -107,10 +110,14 @@ final class PhabricatorFileInfoController extends PhabricatorFileController {
|
||||
->setAction($this->getApplicationURI('/comment/'.$file->getID().'/'))
|
||||
->setSubmitButtonName($submit_button_name);
|
||||
|
||||
$comment_box = id(new PHUIObjectBoxView())
|
||||
->setFlush(true)
|
||||
->setHeader($add_comment_header)
|
||||
->addContent($add_comment_form);
|
||||
|
||||
return array(
|
||||
$timeline,
|
||||
$add_comment_header,
|
||||
$add_comment_form);
|
||||
$comment_box);
|
||||
}
|
||||
|
||||
private function buildActionView(PhabricatorFile $file) {
|
||||
|
||||
Reference in New Issue
Block a user