diff --git a/Netdisco/lib/App/Netdisco/Web/Plugin.pm b/Netdisco/lib/App/Netdisco/Web/Plugin.pm index 37da9f85..99249f12 100644 --- a/Netdisco/lib/App/Netdisco/Web/Plugin.pm +++ b/Netdisco/lib/App/Netdisco/Web/Plugin.pm @@ -30,7 +30,7 @@ register 'register_template_path' => sub { register 'register_navbar_item' => sub { my ($self, $config) = plugin_args(@_); - if (!length $config->{id} + if (!length $config->{tag} or !length $config->{path} or !length $config->{label}) { @@ -39,7 +39,7 @@ register 'register_navbar_item' => sub { } foreach my $item (@{ setting('navbar_items') }) { - if ($item->{id} eq $config->{id}) { + if ($item->{tag} eq $config->{tag}) { $item = $config; return; } diff --git a/Netdisco/lib/App/Netdisco/Web/Plugin/Inventory.pm b/Netdisco/lib/App/Netdisco/Web/Plugin/Inventory.pm index 2532cf14..bafe2074 100644 --- a/Netdisco/lib/App/Netdisco/Web/Plugin/Inventory.pm +++ b/Netdisco/lib/App/Netdisco/Web/Plugin/Inventory.pm @@ -6,7 +6,7 @@ use Dancer::Plugin::DBIC; use App::Netdisco::Web::Plugin; register_navbar_item({ - id => 'inventory', + tag => 'inventory', path => '/inventory', label => 'Inventory', }); diff --git a/Netdisco/share/views/layouts/main.tt b/Netdisco/share/views/layouts/main.tt index dc07e4db..e96da4ed 100644 --- a/Netdisco/share/views/layouts/main.tt +++ b/Netdisco/share/views/layouts/main.tt @@ -52,7 +52,7 @@ [% IF session.user %]