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:
@@ -72,12 +72,15 @@ final class PhabricatorProjectProfileController
|
||||
id(new PhabricatorCrumbView())
|
||||
->setName($project->getName()));
|
||||
|
||||
$object_box = id(new PHUIObjectBoxView())
|
||||
->setHeader($header)
|
||||
->addContent($actions)
|
||||
->addContent($properties);
|
||||
|
||||
return $this->buildApplicationPage(
|
||||
array(
|
||||
$crumbs,
|
||||
$header,
|
||||
$actions,
|
||||
$properties,
|
||||
$object_box,
|
||||
$content,
|
||||
),
|
||||
array(
|
||||
@@ -173,15 +176,13 @@ final class PhabricatorProjectProfileController
|
||||
$task_list->setTasks($tasks);
|
||||
$task_list->setHandles($handles);
|
||||
|
||||
$content = hsprintf(
|
||||
'<div class="phabricator-profile-info-group profile-wrap-responsive">
|
||||
<h1 class="phabricator-profile-info-header">%s</h1>'.
|
||||
'<div class="phabricator-profile-info-pane">'.
|
||||
'%s'.
|
||||
'</div>
|
||||
</div>',
|
||||
pht('Open Tasks'),
|
||||
$task_list);
|
||||
$list = id(new PHUIBoxView())
|
||||
->addPadding(PHUI::PADDING_LARGE)
|
||||
->appendChild($task_list);
|
||||
|
||||
$content = id(new PHUIObjectBoxView())
|
||||
->setHeaderText(pht('Open Tasks'))
|
||||
->addContent($list);
|
||||
|
||||
return $content;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user