mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 21:40:55 +01:00
Add "View All" header buttons to user and project feed boxes
Summary: Fixes T12762. Currently, there's no way to get from these boxes into generaly history in Feed, and it isn't clear that the operation is possible. For now, add some simple links. See T12762 for future work. Test Plan: - Viewed user profles, saw "View All". - Viewed project profiles, saw "View All". {F4978858} Reviewers: chad Reviewed By: chad Maniphest Tasks: T12762 Differential Revision: https://secure.phabricator.com/D18030
This commit is contained in:
parent
46a33c07dc
commit
fc8465252f
2 changed files with 27 additions and 2 deletions
|
@ -28,8 +28,21 @@ final class PhabricatorPeopleProfileViewController
|
|||
$name = $user->getUsername();
|
||||
|
||||
$feed = $this->buildPeopleFeed($user, $viewer);
|
||||
|
||||
$view_all = id(new PHUIButtonView())
|
||||
->setTag('a')
|
||||
->setIcon(
|
||||
id(new PHUIIconView())
|
||||
->setIcon('fa-list-ul'))
|
||||
->setText(pht('View All'))
|
||||
->setHref('/feed/?userPHIDs='.$user->getPHID());
|
||||
|
||||
$feed_header = id(new PHUIHeaderView())
|
||||
->setHeader(pht('Recent Activity'))
|
||||
->addActionLink($view_all);
|
||||
|
||||
$feed = id(new PHUIObjectBoxView())
|
||||
->setHeaderText(pht('Recent Activity'))
|
||||
->setHeader($feed_header)
|
||||
->addClass('project-view-feed')
|
||||
->appendChild($feed);
|
||||
|
||||
|
|
|
@ -80,9 +80,21 @@ final class PhabricatorProjectProfileController
|
|||
->setLimit(50)
|
||||
->execute();
|
||||
|
||||
$view_all = id(new PHUIButtonView())
|
||||
->setTag('a')
|
||||
->setIcon(
|
||||
id(new PHUIIconView())
|
||||
->setIcon('fa-list-ul'))
|
||||
->setText(pht('View All'))
|
||||
->setHref('/feed/?projectPHIDs='.$project->getPHID());
|
||||
|
||||
$feed_header = id(new PHUIHeaderView())
|
||||
->setHeader(pht('Recent Activity'))
|
||||
->addActionLink($view_all);
|
||||
|
||||
$feed = $this->renderStories($stories);
|
||||
$feed = id(new PHUIObjectBoxView())
|
||||
->setHeaderText(pht('Recent Activity'))
|
||||
->setHeader($feed_header)
|
||||
->addClass('project-view-feed')
|
||||
->appendChild($feed);
|
||||
|
||||
|
|
Loading…
Reference in a new issue