Module: check_mk
Branch: master
Commit: 1e98fbad20b6f4f6cc1cb12663fd07150e2d0eff
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1e98fbad20b6f4…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Nov 14 10:43:16 2013 +0100
Updated styling of host diagnostics page
---
web/htdocs/js/wato.js | 8 ++++++--
web/htdocs/wato.css | 11 +++++++++--
2 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/web/htdocs/js/wato.js b/web/htdocs/js/wato.js
index e4ace12..006fc1b 100644
--- a/web/htdocs/js/wato.js
+++ b/web/htdocs/js/wato.js
@@ -720,10 +720,14 @@ function handle_host_diag_result(ident, response_text) {
var log = document.getElementById(ident + '_log');
var retry = document.getElementById(ident + '_retry');
- if (response_text[0] == "0")
+ if (response_text[0] == "0") {
img.src = "images/icon_success.gif";
- else
+ log.className = "log diag_success";
+ }
+ else {
img.src = "images/icon_failed.gif";
+ log.className = "log diag_failed";
+ }
log.innerHTML = response_text.substr(1).replace(/\n/g, "<br>\n");
diff --git a/web/htdocs/wato.css b/web/htdocs/wato.css
index 53fc07c..d00bd0f 100644
--- a/web/htdocs/wato.css
+++ b/web/htdocs/wato.css
@@ -1143,16 +1143,23 @@ table.multisite_conn_method td input {
}
.wato .diag_host .log {
- height: 100px;
+ height: 113px;
width: 700px;
font-family: monospace, sans-serif;
+ box-shadow: 1px 1px 3px #888 inset;
overflow-y: scroll;
- padding: 12px 5px;
+ padding: 5px 5px;
vertical-align: top;
background-color: #fff;
/* below resize option is css3 */
resize:both;
}
+.wato .diag_host .log.diag_success {
+ background-color: #efe;
+}
+.wato .diag_host .log.diag_failed {
+ background-color: #fee;
+}
.wato .diag_host table.test td {
padding: 0;