Added 'Next' and 'Previous' links to differential

Summary:
Browsing comments was a bit difficult without the possibllity to jump
between comments. These links will make the browsing easier.

Test Plan:
Tested on multiple diffs that the links were working correctly.

Reviewed By: epriestley
Reviewers: epriestley
CC: jungejason, aran, tuomaspelkonen, epriestley
Differential Revision: 266
This commit is contained in:
tuomaspelkonen
2011-05-11 12:25:29 -07:00
parent f36c852542
commit 43f6cc75f6
5 changed files with 75 additions and 11 deletions

View File

@@ -192,6 +192,8 @@ class DifferentialChangesetViewController extends DifferentialController {
'whitespace' => $request->getStr('whitespace'),
));
Javelin::initBehavior('differential-comment-jump', array());
$detail = new DifferentialChangesetDetailView();
$detail->setChangeset($changeset);
$detail->appendChild($output);
@@ -219,7 +221,8 @@ class DifferentialChangesetViewController extends DifferentialController {
$output =
'<div class="differential-primary-pane">'.
'<div class="differential-review-stage">'.
'<div class="differential-review-stage" '.
'id="differential-review-stage">'.
$detail->render().
'</div>'.
'</div>';