New UI based on Admin LTE
This commit is contained in:
parent
e52093e0b7
commit
3eac0b0c23
357 changed files with 51422 additions and 961 deletions
|
|
@ -62,8 +62,9 @@ class ProjectController extends \PHPCI\Controller
|
|||
/**
|
||||
* View a specific project.
|
||||
*/
|
||||
public function view($projectId, $branch = '')
|
||||
public function view($projectId)
|
||||
{
|
||||
$branch = $this->getParam('branch', '');
|
||||
$project = $this->projectStore->getById($projectId);
|
||||
|
||||
if (empty($project)) {
|
||||
|
|
@ -87,7 +88,8 @@ class ProjectController extends \PHPCI\Controller
|
|||
$this->view->page = $page;
|
||||
$this->view->pages = $pages;
|
||||
|
||||
$this->config->set('page_title', $project->getTitle());
|
||||
$this->layout->title = $project->getTitle();
|
||||
$this->layout->subtitle = $this->view->branch;
|
||||
|
||||
return $this->view->render();
|
||||
}
|
||||
|
|
@ -134,8 +136,9 @@ class ProjectController extends \PHPCI\Controller
|
|||
/**
|
||||
* AJAX get latest builds.
|
||||
*/
|
||||
public function builds($projectId, $branch = '')
|
||||
public function builds($projectId)
|
||||
{
|
||||
$branch = $this->getParam('branch', '');
|
||||
$builds = $this->getLatestBuildsHtml($projectId, urldecode($branch));
|
||||
die($builds[0]);
|
||||
}
|
||||
|
|
@ -173,7 +176,7 @@ class ProjectController extends \PHPCI\Controller
|
|||
*/
|
||||
public function add()
|
||||
{
|
||||
$this->config->set('page_title', 'Add Project');
|
||||
$this->layout->title = 'Add Project';
|
||||
$this->requireAdmin();
|
||||
|
||||
$method = $this->request->getMethod();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue