support for plugins for navbar items
This commit is contained in:
@@ -29,6 +29,19 @@ engines:
|
||||
|
||||
# netdisco stuff (can be overidden in the environment .yml)
|
||||
|
||||
web_plugins:
|
||||
- Inventory
|
||||
# - Report::WirelessDevices
|
||||
# - Search::Device
|
||||
# - Search::Node
|
||||
# - Search::VLAN
|
||||
# - Search::Port
|
||||
# - Device::Details
|
||||
# - Device::Ports
|
||||
# - Device::Modules
|
||||
# - Device::Neighbors
|
||||
# - Device::Addresses
|
||||
|
||||
discover_no: []
|
||||
discover_only: []
|
||||
|
||||
|
||||
@@ -52,9 +52,11 @@
|
||||
<a class="brand" href="[% uri_for('/') %]">Netdisco</a>
|
||||
[% IF session.user %]
|
||||
<ul class="nav">
|
||||
<li[% ' class="active"' IF vars.nav == 'inventory' %]>
|
||||
<a href="[% uri_for('/inventory') %]">Inventory</a>
|
||||
[% FOREACH ni IN settings.navbar_items %]
|
||||
<li[% ' class="active"' IF vars.nav == ni.id %]>
|
||||
<a href="[% uri_for(ni.path) %]">[% ni.label %]</a>
|
||||
</li>
|
||||
[% END %]
|
||||
[% IF more_dd.size %]
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
|
||||
Reference in New Issue
Block a user