New UI based on Admin LTE

This commit is contained in:
Dan Cryer 2014-12-02 16:26:55 +00:00
commit 3eac0b0c23
357 changed files with 51422 additions and 961 deletions

View file

@ -11,6 +11,7 @@ namespace PHPCI\Controller;
use b8;
use PHPCI\BuildFactory;
use PHPCI\Model\Build;
/**
* Home Controller - Displays the PHPCI Dashboard.
@ -41,14 +42,14 @@ class HomeController extends \PHPCI\Controller
*/
public function index()
{
$this->layout->title = 'Dashboard';
$projects = $this->projectStore->getWhere(array(), 50, 0, array(), array('title' => 'ASC'));
$this->view->builds = $this->getLatestBuildsHtml();
$this->view->builds = $this->buildStore->getLatestBuilds(null, 10);
$this->view->projects = $projects['items'];
$this->view->summary = $this->getSummaryHtml($projects);
$this->config->set('page_title', 'Dashboard');
return $this->view->render();
}