From ba171dafb90217e9c6796c36f35c329ef96e9c61 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Wed, 18 Apr 2012 10:51:18 +0000 Subject: [PATCH] show dropdown on graphs browser for ports git-svn-id: http://www.observium.org/svn/observer/trunk@3049 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/pages/graphs.inc.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/html/pages/graphs.inc.php b/html/pages/graphs.inc.php index 0b0b1c5f9..44790845d 100644 --- a/html/pages/graphs.inc.php +++ b/html/pages/graphs.inc.php @@ -230,6 +230,18 @@ if (!$auth) echo(generate_link("Hide Legend",$vars, array('page' => "graphs", 'legend' => "no"))); } + ### FIXME : do this properly + if($type == "port" && $subtype == "bits") + { + echo(' | '); + if ($vars['previous'] == "yes") + { + echo(generate_link("Hide Previous",$vars, array('page' => "graphs", 'previous' => NULL))); + } else { + echo(generate_link("Show Previous",$vars, array('page' => "graphs", 'previous' => "yes"))); + } + } + echo('
'); if ($vars['showcommand'] == "yes")