diff --git a/src/controller/SprintHistoryController.php b/src/controller/SprintHistoryController.php index e39f7f450d98fca402b293216165d5a69ed8587b..caaeeece47e861f481d96d4201235a9144b6f602 100644 --- a/src/controller/SprintHistoryController.php +++ b/src/controller/SprintHistoryController.php @@ -22,6 +22,7 @@ final class SprintHistoryController extends SprintController { } $error_box = null; + $sprintlist_table = null; $history_model = id(new SprintHistoryDataProvider()) ->setViewer($this->viewer) ->setRequest($request) @@ -60,12 +61,9 @@ final class SprintHistoryController extends SprintController { $help, $sprintlist_table, )); - - return $this->buildApplicationPage( - $nav, - array( - 'title' => array(pht('Task Project History')), - 'device' => true, - )); + $title = pht('Task Project History'); + return $this->newPage() + ->setTitle($title) + ->appendChild($nav); } } diff --git a/src/controller/SprintListController.php b/src/controller/SprintListController.php index 370b1882d2a77f1250432236bc5c8c3b483870d9..a0830169266306ebea2c08b54c67d5f8daad0388 100644 --- a/src/controller/SprintListController.php +++ b/src/controller/SprintListController.php @@ -42,12 +42,9 @@ final class SprintListController extends SprintController { $help, $sprintlist_table, )); - - return $this->buildApplicationPage( - $nav, - array( - 'title' => array(pht('Sprint List')), - 'device' => true, - )); + $title = pht('Sprint List'); + return $this->newPage() + ->setTitle($title) + ->appendChild($nav); } } diff --git a/src/controller/SprintReportController.php b/src/controller/SprintReportController.php index 88a6cb451d6919665bd4059efb277a100aa577a1..15365f9b13f4c3742fe77963a3fbe74786d8d839 100644 --- a/src/controller/SprintReportController.php +++ b/src/controller/SprintReportController.php @@ -58,12 +58,9 @@ final class SprintReportController extends SprintController { $this->buildSprintApplicationCrumbs($can_create) ->setBorder(true) ->addTextCrumb(pht('Reports'))); - - return $this->buildApplicationPage( - $nav, - array( - 'title' => pht('Sprint Reports'), - 'device' => false, - )); + $title = pht('Sprint Reports'); + return $this->newPage() + ->setTitle($title) + ->appendChild($nav); } } diff --git a/src/view/reports/SprintHistoryTableView.php b/src/view/reports/SprintHistoryTableView.php index 444a6808fbfd281ce7fad8fe60d2305bd9e48e5e..faecbe7ced6a97bc505b779cdfad3e66f77132ef 100644 --- a/src/view/reports/SprintHistoryTableView.php +++ b/src/view/reports/SprintHistoryTableView.php @@ -18,7 +18,7 @@ final class SprintHistoryTableView extends SprintView { public function render() { require_celerity_resource('sprint-report-css', 'sprint'); - $filter = $this->BuildFilter($this->request); + $filter = $this->buildFilter($this->viewer, $this->request); if ($this->request->getStr('project')) { $table = $this->buildProjectsTable(); } else {