mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
only show protocols we have devices for
git-svn-id: http://www.observium.org/svn/observer/trunk@2600 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -23,15 +23,19 @@ foreach ($routing_count as $type => $value)
|
|||||||
{
|
{
|
||||||
if (!$vars['protocol']) { $vars['protocol'] = $type; }
|
if (!$vars['protocol']) { $vars['protocol'] = $type; }
|
||||||
|
|
||||||
echo($sep);
|
echo($sep); unset($sep);
|
||||||
|
|
||||||
if ($vars['protocol'] == $type)
|
if ($vars['protocol'] == $type)
|
||||||
{
|
{
|
||||||
echo('<span class="pagemenu-selected">');
|
echo('<span class="pagemenu-selected">');
|
||||||
}
|
}
|
||||||
echo(generate_link($type_text[$type] ." (".$routing_count[$type].")",array('page'=> 'routing', 'protocol' => $type)));
|
if ($routing_count[$type])
|
||||||
|
{
|
||||||
|
echo(generate_link($type_text[$type] ." (".$routing_count[$type].")",array('page'=> 'routing', 'protocol' => $type)));
|
||||||
|
$sep = " | ";
|
||||||
|
}
|
||||||
|
|
||||||
if ($vars['protocol'] == $type) { echo("</span>"); }
|
if ($vars['protocol'] == $type) { echo("</span>"); }
|
||||||
$sep = " | ";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
print_optionbar_end();
|
print_optionbar_end();
|
||||||
|
|||||||
Reference in New Issue
Block a user