show dropdown on graphs browser for ports

git-svn-id: http://www.observium.org/svn/observer/trunk@3049 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2012-04-18 10:51:18 +00:00
parent be0491ee68
commit ba171dafb9
+12
View File
@@ -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('<div style="float: right;">');
if ($vars['showcommand'] == "yes")