Adding per-page titles throughout PHPCI, fixes #371

This commit is contained in:
Dan Cryer 2014-04-24 16:25:24 +01:00
commit 08afe7b104
7 changed files with 29 additions and 1 deletions

View file

@ -40,6 +40,9 @@ class BuildController extends \PHPCI\Controller
$this->view->plugins = $this->getUiPlugins();
$this->view->build = $build;
$this->view->data = $this->getBuildData($build);
$title = 'Build #' . $build->getId() . ' - ' . $build->getProjectTitle();
$this->config->set('page_title', $title);
}
protected function getUiPlugins()