@@ -292,15 +292,15 @@ public function handleRequest(AphrontRequest $request) {
292
292
'/differential/comment/inline/edit/ ' .$ revision ->getID ().'/ ' );
293
293
}
294
294
295
- $ diff_history = id (new DifferentialRevisionUpdateHistoryView ())
295
+ $ history = id (new DifferentialRevisionUpdateHistoryView ())
296
296
->setUser ($ viewer )
297
297
->setDiffs ($ diffs )
298
298
->setSelectedVersusDiffID ($ diff_vs )
299
299
->setSelectedDiffID ($ target ->getID ())
300
300
->setSelectedWhitespace ($ whitespace )
301
301
->setCommitsForLinks ($ commits_for_links );
302
302
303
- $ local_view = id (new DifferentialLocalCommitsView ())
303
+ $ local_table = id (new DifferentialLocalCommitsView ())
304
304
->setUser ($ viewer )
305
305
->setLocalCommits (idx ($ props , 'local:commits ' ))
306
306
->setCommitsForLinks ($ commits_for_links );
@@ -324,6 +324,36 @@ public function handleRequest(AphrontRequest $request) {
324
324
$ visible_changesets ,
325
325
$ target ->loadCoverageMap ($ viewer ));
326
326
327
+ $ tab_group = id (new PHUITabGroupView ())
328
+ ->addTab (
329
+ id (new PHUITabView ())
330
+ ->setName (pht ('Files ' ))
331
+ ->setKey ('files ' )
332
+ ->appendChild ($ toc_view ))
333
+ ->addTab (
334
+ id (new PHUITabView ())
335
+ ->setName (pht ('History ' ))
336
+ ->setKey ('history ' )
337
+ ->appendChild ($ history ))
338
+ ->addTab (
339
+ id (new PHUITabView ())
340
+ ->setName (pht ('Commits ' ))
341
+ ->setKey ('commits ' )
342
+ ->appendChild ($ local_table ));
343
+
344
+ if ($ other_view ) {
345
+ $ tab_group ->addTab (
346
+ id (new PHUITabView ())
347
+ ->setName (pht ('Similar ' ))
348
+ ->setKey ('similar ' )
349
+ ->appendChild ($ other_view ));
350
+ }
351
+
352
+ $ tab_view = id (new PHUIObjectBoxView ())
353
+ ->setHeaderText (pht ('Revision Contents ' ))
354
+ ->setBackground (PHUIObjectBoxView::BLUE_PROPERTY )
355
+ ->addTabGroup ($ tab_group );
356
+
327
357
$ comment_form = null ;
328
358
if (!$ viewer_is_anonymous ) {
329
359
$ comment_form = $ this ->buildCommentForm ($ revision , $ field_list );
@@ -348,15 +378,16 @@ public function handleRequest(AphrontRequest $request) {
348
378
'The content of this revision is hidden until the author has ' .
349
379
'signed all of the required legal agreements. ' ));
350
380
} else {
351
- $ footer [] =
352
- array (
353
- $ diff_history ,
354
- $ warning ,
355
- $ local_view ,
356
- $ toc_view ,
357
- $ other_view ,
358
- $ changeset_view ,
359
- );
381
+ $ anchor = id (new PhabricatorAnchorView ())
382
+ ->setAnchorName ('toc ' )
383
+ ->setNavigationMarker (true );
384
+
385
+ $ footer [] = array (
386
+ $ anchor ,
387
+ $ warning ,
388
+ $ tab_view ,
389
+ $ changeset_view ,
390
+ );
360
391
}
361
392
362
393
if ($ comment_form ) {
@@ -870,9 +901,9 @@ private function renderOtherRevisions(array $revisions) {
870
901
->setHeader (pht ('Recent Similar Revisions ' ));
871
902
872
903
$ view = id (new DifferentialRevisionListView ())
873
- ->setHeader ($ header )
874
904
->setRevisions ($ revisions )
875
905
->setBackground (PHUIObjectBoxView::BLUE_PROPERTY )
906
+ ->setNoBox (true )
876
907
->setUser ($ viewer );
877
908
878
909
$ phids = $ view ->getRequiredHandlePHIDs ();
0 commit comments