mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
css-based alternating colours, yay
git-svn-id: http://www.observium.org/svn/observer/trunk@3019 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -415,6 +415,14 @@ a.list-device, a.list-device-ignored, a.list-device-down, a.list-device-ignored-
|
||||
tr.list-device, tr.list-device-ignored, tr.list-device-down, tr.list-device-ignored-up, tr.list-device-disabled {
|
||||
}
|
||||
|
||||
tr.list-device:nth-child(even) {
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
tr.list-device:nth-child(odd) {
|
||||
background: #eeeeee;
|
||||
}
|
||||
|
||||
tr.list-device-down {
|
||||
border: 2px solid #cc0000;
|
||||
}
|
||||
|
@@ -36,7 +36,7 @@ $device['os_text'] = $config['os'][$device['os']]['text'];
|
||||
$port_count = dbFetchCell("SELECT COUNT(*) FROM `ports` WHERE `device_id` = ?", array($device['device_id']));
|
||||
$sensor_count = dbFetchCell("SELECT COUNT(*) FROM `sensors` WHERE `device_id` = ?", array($device['device_id']));
|
||||
|
||||
echo(' <tr class="'.$class.'" bgcolor="' . $bg . '" onmouseover="this.style.backgroundColor=\'#fdd\';" onmouseout="this.style.backgroundColor=\'' . $bg . '\';"
|
||||
echo(' <tr class="'.$class.'" onmouseover="this.style.backgroundColor=\'#fdd\';" onmouseout="this.style.backgroundColor=\'' . $bg . '\';"
|
||||
onclick="location.href=\'device/device='.$device['device_id'].'/\'" style="cursor: pointer;">
|
||||
<td width="1" style="background-color: '.$table_tab_colour.';"></td>
|
||||
<td width="40" class="paddedcell" align="center" valign="middle">' . $image . '</td>
|
||||
|
Reference in New Issue
Block a user