CSS: monitoring health

This commit is contained in:
Bernd Erk 2015-09-29 18:37:53 +02:00
parent 08385252b3
commit 36790edd85
4 changed files with 120 additions and 7 deletions

View File

@ -10,7 +10,7 @@ if (! $this->compact): ?>
<div class="content processinfo">
<div class="boxview">
<div style="min-width: 30em;" class="box left">
<div class="box process">
<h2><?= $this->translate('Process Info') ?></h2>
<table class="avp">
<tbody>
@ -75,9 +75,7 @@ if (! $this->compact): ?>
</div>
<?php endif ?>
</div>
<br>
<div style="min-width: 30em;" class="box left">
<div class="box features">
<?= $this->toggleFeaturesForm; ?>
</div>
</div>

View File

@ -8,9 +8,9 @@ if (! $this->compact): ?>
</div>
<?php endif ?>
<div class="content processinfo">
<div class="content stats">
<div class="boxview">
<div class="box left">
<div class="box stats">
<h3><?= $this->unhandledProblems ?> <?= $this->translate('Unhandled Problems:') ?>
<span class="badge badge-critical"> <?= $this->unhandledProblems ?> </span>
</h3>

View File

@ -6,7 +6,7 @@ if (! $stats instanceof stdClass) {
$stats = $stats->fetchRow();
}
?>
<div class="pull-left">
<div>
<?= $this->qlink(
sprintf($this->translatePlural(
'%u Service', '%u Services', $stats->services_total),

View File

@ -123,6 +123,121 @@ div.box.hostservicechecks th {
padding-bottom: 20px;
}
/* Monitoring health - PROCESS - element styles */
div.box.process {
border: 1px solid @gray-lighter;
border-left: 15px solid @gray;
min-height: 30em;
min-width: 30em;
}
.process div.box.header {
min-height: 5em;
border-bottom:1px solid @gray-lighter;
}
.process > .boxview > div.box {
min-height: 30em;
min-width: 30em;
}
.process h2 {
padding-bottom: 15px;
border-bottom:1px solid @gray-lighter;
}
.process th {
text-align: right;
}
.process td {
padding-left: 2em;
text-align: left;
}
div.backend-running {
background: @color-ok;
color: white;
text-align: center;
margin-top: 1em;
padding: 0.5em;
&.span {
color: white;
}
}
div.backend-not-running {
background: @color-critical;
color: white;
text-align: center;
padding: 0.1em;
}
/* Monitoring health - FEATURE - element styles */
div.box.features {
border: 1px solid @gray-lighter;
border-left: 15px solid @gray;
min-height: 30em;
min-width: 30em;
}
.features div.box.header {
min-height: 5em;
border-bottom:1px solid @gray-lighter;
}
.features > .boxview > div.box {
min-height: 30em;
min-width: 30em;
}
.features h2 {
padding-bottom: 15px;
border-bottom:1px solid @gray-lighter;
}
/* Monitoring health - STATS - element styles */
div.box.stats {
border: 1px solid @gray-lighter;
border-left: 15px solid @gray;
color: @text-color;
}
.stats > .boxview > div.box {
min-height: 30em;
width:95%;
}
.stats > .avp > tbody {
text-align: left;
}
.stats > table {
padding-bottom: 15px;
}
.stats > table > thead{
color: @gray;
}
.stats > .pull-left {
float: none;
}
.stats > h3 {
color: @gray;
text-align: left;
border-bottom:1px solid @gray-lighter;
padding-bottom: 15px;
}
//p.pluginoutput {
// width: 100%;
// white-space: pre-wrap;