Improved dashboard styles
This commit is contained in:
parent
b5759cced2
commit
f4083df2a8
|
@ -583,3 +583,8 @@ h6,
|
|||
.CodeMirror-linenumber {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.bg-grey {
|
||||
background-color: #8aa4af !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue