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 {
font-size: 12px;
}
.bg-grey {
background-color: #8aa4af !important;
color: #fff !important;
}

View file

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

View file

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

View file

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