monitoring: Highlight state in plugin output in the detail area
refs #10670
This commit is contained in:
parent
ed5c2c4190
commit
b49cefa45d
|
@ -20,10 +20,10 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
|
||||||
"\n",
|
"\n",
|
||||||
"\t",
|
"\t",
|
||||||
"\n",
|
"\n",
|
||||||
'<span class="state ok">$1OK$2</span>',
|
'<span class="state-ok">$1OK$2</span>',
|
||||||
'<span class="state warning">$1WARNING$2</span>',
|
'<span class="state-warning">$1WARNING$2</span>',
|
||||||
'<span class="state critical">$1CRITICAL$2</span>',
|
'<span class="state-critical">$1CRITICAL$2</span>',
|
||||||
'<span class="state error">$1UNKNOWN$2</span>',
|
'<span class="state-unknown">$1UNKNOWN$2</span>',
|
||||||
'@@@@@@',
|
'@@@@@@',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -54,9 +54,9 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
|
||||||
|
|
||||||
if (! $raw) {
|
if (! $raw) {
|
||||||
if ($isHtml) {
|
if ($isHtml) {
|
||||||
$output = '<div class="pluginoutput">' . $output . '</div>';
|
$output = '<div class="plugin-output">' . $output . '</div>';
|
||||||
} else {
|
} else {
|
||||||
$output = '<div class="pluginoutput preformatted">' . $output . '</div>';
|
$output = '<div class="plugin-output preformatted">' . $output . '</div>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $output;
|
return $output;
|
||||||
|
|
|
@ -415,9 +415,33 @@ form.instance-features span.description, form.object-features span.description {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
div.pluginoutput {
|
.plugin-output {
|
||||||
border-left: 5px solid @gray-lighter;
|
border-left: 5px solid @gray-lighter;
|
||||||
padding: 0.66em 0.33em;
|
padding: 0.66em 0.33em;
|
||||||
|
|
||||||
|
.state-critical {
|
||||||
|
background-color: @color-critical;
|
||||||
|
color: @body-bg-color;
|
||||||
|
padding: 0.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.state-ok {
|
||||||
|
background-color: @color-ok;
|
||||||
|
color: @body-bg-color;
|
||||||
|
padding: 0.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.state-unknown {
|
||||||
|
background-color: @color-unknown;
|
||||||
|
color: @body-bg-color;
|
||||||
|
padding: 0.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.state-warning {
|
||||||
|
background-color: @color-warning;
|
||||||
|
color: @body-bg-color;
|
||||||
|
padding: 0.2em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.go-ahead > a {
|
.go-ahead > a {
|
||||||
|
|
Loading…
Reference in New Issue