From 65e030e0fa9b0ba67648601a3a5e62b8526b2535 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Thu, 21 Apr 2011 12:59:44 +0000 Subject: [PATCH] prettier device page (maybe not, bu tnow matches device box) git-svn-id: http://www.observium.org/svn/observer/trunk@2126 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/device-header.inc.php | 37 ++++++++++++++++++++--------- html/pages/device.inc.php | 3 ++- includes/defaults.inc.php | 2 +- 3 files changed, 29 insertions(+), 13 deletions(-) diff --git a/html/includes/device-header.inc.php b/html/includes/device-header.inc.php index 8080c2c13..32f0694c4 100644 --- a/html/includes/device-header.inc.php +++ b/html/includes/device-header.inc.php @@ -1,21 +1,36 @@ - $image - " . generate_device_link($device) . " -
" . $device['location'] . " + echo(' + + '.$image.' + ' . generate_device_link($device) . ' +
' . $device['location'] . ' - "); + '); ?> diff --git a/html/pages/device.inc.php b/html/pages/device.inc.php index 1a5b34c5a..7c0ecac83 100644 --- a/html/pages/device.inc.php +++ b/html/pages/device.inc.php @@ -24,7 +24,8 @@ if (device_permitted($_GET['id']) || $check_device == $_GET['id']) $device = device_by_id_cache($_GET['id']); if ($config['os'][$device['os']]['group']) { $device['os_group'] = $config['os'][$device['os']]['group']; } - echo(''); + echo('
'); + #include("includes/hostbox.inc.php"); include("includes/device-header.inc.php"); echo('
'); diff --git a/includes/defaults.inc.php b/includes/defaults.inc.php index 8bc5ac20c..e8aa8748a 100644 --- a/includes/defaults.inc.php +++ b/includes/defaults.inc.php @@ -166,7 +166,7 @@ $config['bad_if'] = array("voip-null", "virtual-", "unrouted", "eobc", "mpls", " "-atm layer", "-atm subif", "-shdsl", "-aal5", "-atm", "container", "async", "plip", "-physical", "-signalling", "container", "unrouted", "bri", "-bearer", "bluetooth", "isatap", "ras", "qos", "miniport", "sonet/sdh", - "span rp", "span sp", "sslvpn"); + "span rp", "span sp", "sslvpn", "pppoe-"); $config['bad_if_regexp'] = array("/serial[0-9]:/", "/^ng[0-9]+$/", "/^sl[0-9]/");