Differential D20458 Diff 48833 src/applications/diffusion/controller/DiffusionRepositoryController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionRepositoryController.php
Show First 20 Lines • Show All 434 Lines • ▼ Show 20 Lines | if ($history_exception) { | ||||
pht('Unable to Retrieve History'), | pht('Unable to Retrieve History'), | ||||
$history_exception->getMessage()); | $history_exception->getMessage()); | ||||
} | } | ||||
} | } | ||||
$history_table = id(new DiffusionHistoryTableView()) | $history_table = id(new DiffusionHistoryTableView()) | ||||
->setUser($viewer) | ->setUser($viewer) | ||||
->setDiffusionRequest($drequest) | ->setDiffusionRequest($drequest) | ||||
->setHistory($history); | ->setHistory($history) | ||||
->setIsHead(true); | |||||
// TODO: Super sketchy. | |||||
$history_table->loadRevisions(); | |||||
if ($history_results) { | if ($history_results) { | ||||
$history_table->setParents($history_results['parents']); | $history_table->setParents($history_results['parents']); | ||||
} | } | ||||
$history_table->setIsHead(true); | |||||
$panel = id(new PHUIObjectBoxView()) | $panel = id(new PHUIObjectBoxView()) | ||||
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) | ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) | ||||
->addClass('diffusion-mobile-view'); | ->addClass('diffusion-mobile-view'); | ||||
$header = id(new PHUIHeaderView()) | $header = id(new PHUIHeaderView()) | ||||
->setHeader(pht('Recent Commits')); | ->setHeader(pht('Recent Commits')); | ||||
$panel->setHeader($header); | $panel->setHeader($header); | ||||
$panel->setTable($history_table); | $panel->setTable($history_table); | ||||
▲ Show 20 Lines • Show All 176 Lines • Show Last 20 Lines |