@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove "Recent Commits" from repository landing page

Summary:
Ref T13552. Currently, the repository landing page has a panel with recent commits. This is accessible by clicking "History" and usually below the fold, so it's not clearly useful.

Since I'm consolidating this code anyway to fix an issue with the import pipeline, just get rid of this history view.

Test Plan: Viewed a repository landing page, no longer saw a history panel.

Maniphest Tasks: T13552

Differential Revision: https://secure.phabricator.com/D21408

-51
-51
src/applications/diffusion/controller/DiffusionRepositoryController.php
··· 299 299 $handles, 300 300 $browse_pager); 301 301 302 - $content[] = $this->buildHistoryTable( 303 - $history_results, 304 - $history, 305 - $history_exception); 306 - 307 302 if ($readme) { 308 303 $content[] = $readme; 309 304 } 310 - 311 305 312 306 try { 313 307 $branch_button = $this->buildBranchList($drequest); ··· 426 420 ->addClass('diffusion-profile-description'); 427 421 } 428 422 return null; 429 - } 430 - 431 - private function buildHistoryTable( 432 - $history_results, 433 - $history, 434 - $history_exception) { 435 - 436 - $request = $this->getRequest(); 437 - $viewer = $request->getUser(); 438 - $drequest = $this->getDiffusionRequest(); 439 - $repository = $drequest->getRepository(); 440 - 441 - if ($history_exception) { 442 - if ($repository->isImporting()) { 443 - return $this->renderStatusMessage( 444 - pht('Still Importing...'), 445 - pht( 446 - 'This repository is still importing. History is not yet '. 447 - 'available.')); 448 - } else { 449 - return $this->renderStatusMessage( 450 - pht('Unable to Retrieve History'), 451 - $history_exception->getMessage()); 452 - } 453 - } 454 - 455 - $history_table = id(new DiffusionHistoryTableView()) 456 - ->setUser($viewer) 457 - ->setDiffusionRequest($drequest) 458 - ->setHistory($history) 459 - ->setIsHead(true); 460 - 461 - if ($history_results) { 462 - $history_table->setParents($history_results['parents']); 463 - } 464 - 465 - $panel = id(new PHUIObjectBoxView()) 466 - ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) 467 - ->addClass('diffusion-mobile-view'); 468 - $header = id(new PHUIHeaderView()) 469 - ->setHeader(pht('Recent Commits')); 470 - $panel->setHeader($header); 471 - $panel->setTable($history_table); 472 - 473 - return $panel; 474 423 } 475 424 476 425 private function buildBranchList(DiffusionRequest $drequest) {