PHUIFeedStoryView, Update Profile
Summary: This moves Feed's rendering over to a PHUI class. I want to build it out and have it power Ponder, Phame, Feed, as well as Profiles and Projects in some fashion. It also provides some more data depth over ObjectItemView. Also updated Profile for mobile and fixed some other display issues there. Test Plan: Tested Feed, Profile. Used iOS and Chrome. Reviewers: epriestley, btrahan Reviewed By: epriestley CC: aran, Korvin, AnhNhan Differential Revision: https://secure.phabricator.com/D5687
This commit is contained in:
@@ -141,8 +141,6 @@ final class PhabricatorPeopleProfileController
|
||||
}
|
||||
|
||||
$nav->appendChild($header);
|
||||
|
||||
$content = hsprintf('<div style="padding: 1em;">%s</div>', $content);
|
||||
$header->appendChild($content);
|
||||
|
||||
if ($user->getPHID() == $viewer->getPHID()) {
|
||||
@@ -163,6 +161,8 @@ final class PhabricatorPeopleProfileController
|
||||
$nav,
|
||||
array(
|
||||
'title' => $user->getUsername(),
|
||||
'device' => true,
|
||||
'dust' => true,
|
||||
));
|
||||
}
|
||||
|
||||
@@ -179,7 +179,7 @@ final class PhabricatorPeopleProfileController
|
||||
$blurb = $engine->markupText($blurb);
|
||||
|
||||
$content = hsprintf(
|
||||
'<div class="phabricator-profile-info-group">
|
||||
'<div class="phabricator-profile-info-group ml">
|
||||
<h1 class="phabricator-profile-info-header">%s</h1>
|
||||
<div class="phabricator-profile-info-pane">
|
||||
<table class="phabricator-profile-info-table">
|
||||
@@ -194,7 +194,7 @@ final class PhabricatorPeopleProfileController
|
||||
</table>
|
||||
</div>
|
||||
</div>'.
|
||||
'<div class="phabricator-profile-info-group">
|
||||
'<div class="phabricator-profile-info-group ml">
|
||||
<h1 class="phabricator-profile-info-header">%s</h1>
|
||||
<div class="phabricator-profile-info-pane">
|
||||
<table class="phabricator-profile-info-table">
|
||||
@@ -235,10 +235,8 @@ final class PhabricatorPeopleProfileController
|
||||
|
||||
return hsprintf(
|
||||
'<div class="phabricator-profile-info-group">
|
||||
<h1 class="phabricator-profile-info-header">%s</h1>
|
||||
<div class="phabricator-profile-info-pane">%s</div>
|
||||
%s
|
||||
</div>',
|
||||
pht('Activity Feed'),
|
||||
$view->render());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user