Commit 5ed2f06b authored by cfoe's avatar cfoe
Browse files

moved OS-class one level up for better theming flexibility

parent a1911c89
......@@ -222,9 +222,9 @@ function _getServerState($serverId, $serverName) {
/*
* Info of a VE inside a OpenVz-Host
*/
$html_ve = '<div class="systemmonitor-ve state-' . $serverState . '-ve">';
$html_ve = '<div class="systemmonitor-ve state-' . $serverState . '-ve os-' . $osData['name'] . '">';
if ($osData != null) {
$html_ve .= '<div class="icoDevice os-' . $osData['name'] . '"><p class="status"></p></div>';
$html_ve .= '<div class="icoDevice"><p class="status"></p></div>';
}
else {
$html_ve .= '<div class="icoDevice"><p class="status"></p></div>';
......@@ -244,9 +244,9 @@ function _getServerState($serverId, $serverName) {
/*
* Info of a "normal" Server or a OpenVz-Host
*/
$html_server = '<div class="systemmonitor-server state-' . $serverState . '">';
$html_server = '<div class="systemmonitor-server state-' . $serverState . ' os-' . $osData['name'] . '">';
if ($osData != null) {
$html_server .= '<div class="icoDevice os-' . $osData['name'] . '"><p class="status"></p></div>';
$html_server .= '<div class="icoDevice"><p class="status"></p></div>';
}
else {
$html_server .= '<div class="icoDevice"><p class="status"></p></div>';
......
Supports Markdown
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