support for plugins for navbar items

This commit is contained in:
Oliver Gorwits
2013-02-09 16:52:01 +00:00
parent 367bd6f858
commit eafa039bbd
7 changed files with 78 additions and 5 deletions

View File

@@ -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">