mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 23:02:42 +01:00
Break profiles less after D4376
Summary: This won't win any awards, but makes User and Project profile pages significantly less broken in the wake of D4376. Test Plan: {F28858} {F28859} Reviewers: btrahan, chad Reviewed By: chad CC: aran Differential Revision: https://secure.phabricator.com/D4382
This commit is contained in:
parent
f1d7c8fbf8
commit
ad4c4acafc
2 changed files with 10 additions and 8 deletions
|
@ -130,9 +130,10 @@ final class PhabricatorPeopleProfileController
|
|||
}
|
||||
}
|
||||
|
||||
$header->appendChild($nav);
|
||||
$nav->appendChild(
|
||||
'<div style="padding: 1em;">'.$content.'</div>');
|
||||
$nav->appendChild($header);
|
||||
|
||||
$content = '<div style="padding: 1em;">'.$content.'</div>';
|
||||
$header->appendChild($content);
|
||||
|
||||
if ($user->getPHID() == $viewer->getPHID()) {
|
||||
$nav->addSpacer();
|
||||
|
@ -148,7 +149,7 @@ final class PhabricatorPeopleProfileController
|
|||
}
|
||||
|
||||
return $this->buildApplicationPage(
|
||||
$header,
|
||||
$nav,
|
||||
array(
|
||||
'title' => $user->getUsername(),
|
||||
));
|
||||
|
|
|
@ -68,8 +68,6 @@ final class PhabricatorProjectProfileController
|
|||
throw new Exception("Unimplemented filter '{$this->page}'.");
|
||||
}
|
||||
|
||||
$content = '<div style="padding: 1em;">'.$content.'</div>';
|
||||
$nav_view->appendChild($content);
|
||||
|
||||
$header = new PhabricatorProfileHeaderView();
|
||||
$header->setName($project->getName());
|
||||
|
@ -112,10 +110,13 @@ final class PhabricatorProjectProfileController
|
|||
|
||||
$header->addAction($action);
|
||||
|
||||
$header->appendChild($nav_view);
|
||||
$nav_view->appendChild($header);
|
||||
|
||||
$content = '<div style="padding: 1em;">'.$content.'</div>';
|
||||
$header->appendChild($content);
|
||||
|
||||
return $this->buildStandardPageResponse(
|
||||
$header,
|
||||
$nav_view,
|
||||
array(
|
||||
'title' => $project->getName().' Project',
|
||||
));
|
||||
|
|
Loading…
Reference in a new issue