Add a standalone view for browsing changesets of very large revisions
Summary: Ref T13110. Installs have various reasons for sending unreviewable changes (changes where the text of the change will never be reviewed by a human) through Differential anyway. Prepare for accommodating this more gracefully by building a standalone changeset list page which paginates the changesets. Test Plan: Clicked the new "Changeset List" button on a revision, was taken to a separate page. Maniphest Tasks: T13110 Differential Revision: https://secure.phabricator.com/D19295
This commit is contained in:
@@ -399,8 +399,18 @@ final class DifferentialRevisionViewController extends DifferentialController {
|
||||
->appendChild($other_view));
|
||||
}
|
||||
|
||||
$view_button = id(new PHUIButtonView())
|
||||
->setTag('a')
|
||||
->setText(pht('Changeset List'))
|
||||
->setHref('/differential/diff/'.$target->getID().'/changesets/')
|
||||
->setIcon('fa-align-left');
|
||||
|
||||
$tab_header = id(new PHUIHeaderView())
|
||||
->setHeader(pht('Revision Contents'))
|
||||
->addActionLink($view_button);
|
||||
|
||||
$tab_view = id(new PHUIObjectBoxView())
|
||||
->setHeaderText(pht('Revision Contents'))
|
||||
->setHeader($tab_header)
|
||||
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
|
||||
->addTabGroup($tab_group);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user