mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added config option for navbar menu manage groups
This commit is contained in:
@@ -140,11 +140,17 @@ if ($_SESSION['userlevel'] >= '10') {
|
|||||||
</li>
|
</li>
|
||||||
');
|
');
|
||||||
}
|
}
|
||||||
echo('
|
echo '
|
||||||
<li role="presentation" class="divider"></li>
|
<li role="presentation" class="divider"></li>
|
||||||
<li><a href="'.generate_url(array('page'=>'device-groups')).'"><i class="fa fa-th fa-fw fa-lg"></i> Manage Groups</a></li>
|
';
|
||||||
|
|
||||||
|
if ($config['navbar']['manage_groups']['hide'] === 0) {
|
||||||
|
echo '<li><a href="'.generate_url(array('page'=>'device-groups')).'"><i class="fa fa-th fa-fw fa-lg"></i> Manage Groups</a></li>';
|
||||||
|
}
|
||||||
|
|
||||||
|
echo '
|
||||||
<li><a href="addhost/"><i class="fa fa-plus fa-col-success fa-fw fa-lg"></i> Add Device</a></li>
|
<li><a href="addhost/"><i class="fa fa-plus fa-col-success fa-fw fa-lg"></i> Add Device</a></li>
|
||||||
<li><a href="delhost/"><i class="fa fa-trash fa-col-info fa-fw fa-lg"></i> Delete Device</a></li>');
|
<li><a href="delhost/"><i class="fa fa-trash fa-col-info fa-fw fa-lg"></i> Delete Device</a></li>';
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@@ -780,3 +780,6 @@ $config['mapael']['default_map'] = 'maps/world_countries.
|
|||||||
$config['leaflet']['default_lat'] = '50.898482';
|
$config['leaflet']['default_lat'] = '50.898482';
|
||||||
$config['leaflet']['default_lng'] = '-3.401402';
|
$config['leaflet']['default_lng'] = '-3.401402';
|
||||||
$config['leaflet']['default_zoom'] = 2;
|
$config['leaflet']['default_zoom'] = 2;
|
||||||
|
|
||||||
|
// Navbar variables
|
||||||
|
$config['navbar']['manage_groups']['hide'] = 0;
|
||||||
|
Reference in New Issue
Block a user