Improved dashboard styles

This commit is contained in:
Dmitry Khomutov 2017-02-11 16:49:56 +07:00
parent b5759cced2
commit f4083df2a8
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9
4 changed files with 15 additions and 13 deletions

View file

@ -583,3 +583,8 @@ h6,
.CodeMirror-linenumber { .CodeMirror-linenumber {
font-size: 12px; font-size: 12px;
} }
.bg-grey {
background-color: #8aa4af !important;
color: #fff !important;
}

View file

@ -141,13 +141,10 @@ class Project extends ProjectBase
$icon = 'bitbucket'; $icon = 'bitbucket';
break; break;
case 'git': case 'remote':
case 'gitlab': case 'gitlab':
$icon = 'git';
break;
default: default:
$icon = 'cog'; $icon = 'code-fork';
break; break;
} }

View file

@ -3,7 +3,7 @@ use PHPCensor\Helper\Lang;
$statuses = []; $statuses = [];
$failures = 0; $failures = 0;
$subcls = 'yellow'; $subcls = 'grey';
$cls = ''; $cls = '';
$success = null; $success = null;
$failure = null; $failure = null;
@ -103,18 +103,18 @@ if ($buildCount > 0) {
<?php for ($idx=0; $idx < 5; $idx++) { <?php for ($idx=0; $idx < 5; $idx++) {
if (empty($builds[$idx])) { if (empty($builds[$idx])) {
echo '<span class="small-box-footer-build small-box-footer bg-blue"><i class="fa fa-minus"></i></span>'; echo '<span class="small-box-footer-build small-box-footer bg-grey"><i class="fa fa-minus"></i></span>';
} else { } else {
$build = $builds[$idx]; $build = $builds[$idx];
$link = APP_URL . 'build/view/' . $build->id; $link = APP_URL . 'build/view/' . $build->id;
switch ($build->getStatus()) { switch ($build->getStatus()) {
case 0: case 0:
$class = 'bg-blue'; $class = 'bg-blue';
$icon = 'fa-minus'; $icon = 'fa-clock-o';
break; break;
case 1: case 1:
$class = 'bg-yellow'; $class = 'bg-yellow';
$icon = 'fa-clock-o'; $icon = 'fa-cogs';
break; break;
case 2: case 2:
$class = 'bg-green'; $class = 'bg-green';

View file

@ -4,7 +4,7 @@ use PHPCensor\Helper\Lang;
foreach($projects as $project): foreach($projects as $project):
$statuses = []; $statuses = [];
$failures = 0; $failures = 0;
$subcls = 'yellow'; $subcls = 'grey';
$cls = ''; $cls = '';
$success = null; $success = null;
$failure = null; $failure = null;
@ -104,18 +104,18 @@ foreach($projects as $project):
<?php for ($idx=0; $idx < 5; $idx++) { <?php for ($idx=0; $idx < 5; $idx++) {
if (empty($builds[$project->getId()][$idx])) { if (empty($builds[$project->getId()][$idx])) {
echo '<span class="small-box-footer-build small-box-footer bg-blue"><i class="fa fa-minus"></i></span>'; echo '<span class="small-box-footer-build small-box-footer bg-grey"><i class="fa fa-minus"></i></span>';
} else { } else {
$build = $builds[$project->getId()][$idx]; $build = $builds[$project->getId()][$idx];
$link = APP_URL . 'build/view/' . $build->id; $link = APP_URL . 'build/view/' . $build->id;
switch ($build->getStatus()) { switch ($build->getStatus()) {
case 0: case 0:
$class = 'bg-blue'; $class = 'bg-blue';
$icon = 'fa-minus'; $icon = 'fa-clock-o';
break; break;
case 1: case 1:
$class = 'bg-yellow'; $class = 'bg-yellow';
$icon = 'fa-clock-o'; $icon = 'fa-cogs';
break; break;
case 2: case 2:
$class = 'bg-green'; $class = 'bg-green';