Added public/private project status icon to dashboard.
This commit is contained in:
parent
36243ca9cb
commit
1b70128c83
3 changed files with 19 additions and 3 deletions
|
|
@ -94,10 +94,12 @@ class ProjectController extends PHPCensor\Controller
|
|||
$this->view->perPage = $perPage;
|
||||
|
||||
$this->layout->title = $project->getTitle();
|
||||
|
||||
$this->layout->subtitle = '';
|
||||
if (!empty($this->view->environment)) {
|
||||
$this->layout->subtitle = $this->view->environment;
|
||||
} else {
|
||||
$this->layout->subtitle = $this->view->branch;
|
||||
$this->layout->subtitle = '<i class="fa fa-gear"></i> ' . $this->view->environment;
|
||||
} elseif (!empty($this->view->branch)) {
|
||||
$this->layout->subtitle = '<i class="fa fa-code-fork"></i> ' . $this->view->branch;
|
||||
}
|
||||
|
||||
return $this->view->render();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue