Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionHistoryController.php
| Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | if ($show_graph) { | ||||
| $history_table->setIsHead(!$pager->getOffset()); | $history_table->setIsHead(!$pager->getOffset()); | ||||
| $history_table->setIsTail(!$pager->getHasMorePages()); | $history_table->setIsTail(!$pager->getHasMorePages()); | ||||
| } | } | ||||
| $history_header = $this->buildHistoryHeader($drequest); | $history_header = $this->buildHistoryHeader($drequest); | ||||
| $history_panel = id(new PHUIObjectBoxView()) | $history_panel = id(new PHUIObjectBoxView()) | ||||
| ->setHeader($history_header) | ->setHeader($history_header) | ||||
| ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) | ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) | ||||
| ->setTable($history_table); | ->setTable($history_table) | ||||
| ->setPager($pager); | |||||
| $header = $this->buildHeader($drequest); | $header = $this->buildHeader($drequest); | ||||
| $crumbs = $this->buildCrumbs( | $crumbs = $this->buildCrumbs( | ||||
| array( | array( | ||||
| 'branch' => true, | 'branch' => true, | ||||
| 'path' => true, | 'path' => true, | ||||
| 'view' => 'history', | 'view' => 'history', | ||||
| )); | )); | ||||
| $crumbs->setBorder(true); | $crumbs->setBorder(true); | ||||
| $pager_box = $this->renderTablePagerBox($pager); | |||||
| $view = id(new PHUITwoColumnView()) | $view = id(new PHUITwoColumnView()) | ||||
| ->setHeader($header) | ->setHeader($header) | ||||
| ->setFooter(array( | ->setFooter(array( | ||||
| $history_panel, | $history_panel, | ||||
| $pager_box, | |||||
| )); | )); | ||||
| return $this->newPage() | return $this->newPage() | ||||
| ->setTitle( | ->setTitle( | ||||
| array( | array( | ||||
| pht('History'), | pht('History'), | ||||
| $repository->getDisplayName(), | $repository->getDisplayName(), | ||||
| )) | )) | ||||
| ▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines | |||||