Commit 48d97796 authored by redray's avatar redray

style fix

parent 228f82e7
......@@ -129,18 +129,20 @@ if(isset($record['data'])) {
$logDataHtml = '';
/* set css class for each line of log, depending on key words in each line */
foreach($logData as $val) {
if (strpos($val, 'ERROR') !== FALSE) {
if (strpos(strtolower($val), 'fatal') !== FALSE) {
$logDataHtml .= "<div class='logerror'>$val</div>";
} elseif (strpos($val, 'WARN') !== FALSE) {
} elseif (strpos(strtolower($val), 'error') !== FALSE) {
$logDataHtml .= "<div class='logerror'>$val</div>";
} elseif (strpos(strtolower($val), 'warn') !== FALSE) {
$logDataHtml .= "<div class='logwarn'>$val</div>";
} elseif (strpos($val, 'INFO') !== FALSE) {
} elseif (strpos(strtolower($val), 'info') !== FALSE) {
$logDataHtml .= "<div class='loginfo'>$val</div>";
} else {
$logDataHtml .= "<div class='log'>$val</div>";
}
}
$app->tpl->setVar("log_data", $logData);
$app->tpl->setVar("log_data", $logDataHtml);
} else {
$app->tpl->setVar("log_data", $app->lng("no_logdata_txt"));
}
......
......@@ -455,7 +455,7 @@ table.list .tbl_col_limit {
font-family: Consolas, "Lucida Console", "Courier New", monospace;
font-size: 0.9em;
}
.codeview .logerror { background: rgb(255,0,0); }
.codeview .logerror { background: rgb(255,0,0); color: #fff; }
.codeview .logwarn { background: rgb(255,204,0); }
.codeview .loginfo { background: rgb(153,204,255); }
......@@ -492,6 +492,7 @@ table.list td.tbl_col_buttons { word-wrap:normal;white-space:normal;overflow:vis
}
/* Systemmonitor */
.systemmonitor,
.systemmonitor-server,
.systemmonitor-ve,
.systemmonitor-state {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment