From 46b7c74e51b10b6b3224650f945162fa718d58d5 Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Sun, 22 Apr 2012 17:13:27 +0000 Subject: [PATCH] bring device overview info table layout in line with all other information panels git-svn-id: http://www.observium.org/svn/observer/trunk@3081 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/dev-overview-data.inc.php | 13 +++++++++---- html/pages/device/overview.inc.php | 13 ++++--------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/html/includes/dev-overview-data.inc.php b/html/includes/dev-overview-data.inc.php index b83b8c311..2a8774351 100644 --- a/html/includes/dev-overview-data.inc.php +++ b/html/includes/dev-overview-data.inc.php @@ -1,8 +1,12 @@ "); + if ($config['overview_show_sysDescr']) { - echo('
' . $device['sysDescr'] . "
"); + echo("

"); + echo('

' . $device['sysDescr'] . "
"); + echo("

"); } $uptime = $device['uptime']; @@ -11,7 +15,8 @@ if ($device['os'] == "ios") { formatCiscoHardware($device); } if ($device['features']) { $device['features'] = "(".$device['features'].")"; } $device['os_text'] = $config['os'][$device['os']]['text']; -echo(''); +echo("
"); +echo('
'); if ($device['hardware']) { @@ -74,7 +79,7 @@ if ($uptime) '); } -echo(' -
'); + echo("
"); + echo(""); ?> diff --git a/html/pages/device/overview.inc.php b/html/pages/device/overview.inc.php index 394dce5e5..4ad42ad91 100644 --- a/html/pages/device/overview.inc.php +++ b/html/pages/device/overview.inc.php @@ -17,14 +17,9 @@ if ($ports['down']) { $ports_colour = $warn_colour_a; } else { $ports_colour = $ echo("
"); -# echo("

Device Data

"); -# include("includes/dev-data-" . strtolower($device[os]) . ".inc.php"); - include("includes/dev-overview-data.inc.php"); - - echo(""); -#} +echo("
"); +include("includes/dev-overview-data.inc.php"); +echo("
"); include("overview/ports.inc.php"); @@ -52,7 +47,7 @@ if ($services['total']) if ($data['service_status'] == "1" && $data['service_ignore'] == "1") { $status = "green"; } if ($data['service_status'] == "0" && $data['service_ignore'] == "0") { $status = "red"; } if ($data['service_status'] == "1" && $data['service_ignore'] == "0") { $status = "blue"; } - echo("$break" . strtolower($data[service_type]) . ""); + echo("$break" . strtolower($data['service_type']) . ""); $break = ", "; }