Add a dedicated HistoryListView for Diffusion

Summary: Going to play a bit with this layout (diffusion sans audit) and see how it feels on profile. Uses a user image, moves the commit hash (easily selectible) and separates commits by date.

Test Plan:
Review profiles with and without commits.

{F4973987}

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D18005
This commit is contained in:
Chad Little
2017-05-23 14:01:32 -07:00
parent 774fba3ce9
commit 1b36252ef3
5 changed files with 166 additions and 9 deletions

View File

@@ -56,22 +56,15 @@ final class PhabricatorPeopleProfileCommitsController
$commits = id(new DiffusionCommitQuery())
->setViewer($viewer)
->withAuthorPHIDs(array($user->getPHID()))
->needAuditRequests(true)
->needCommitData(true)
->needDrafts(true)
->setLimit(100)
->execute();
$list = id(new PhabricatorAuditListView())
$list = id(new DiffusionHistoryListView())
->setViewer($viewer)
->setCommits($commits)
->setNoDataString(pht('No recent commits.'));
$view = id(new PHUIObjectBoxView())
->setHeaderText(pht('Recent Commits'))
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
->appendChild($list);
return $view;
return $list;
}
}