Plugins should be able to add navigation links so you can get to the
views they define.

Reviewed-by: Nick Lewis <[email protected]>
Signed-off-by: Matt Robinson <[email protected]>
---
Local-branch: ticket/master/7958-plugin_navigation_links
 app/views/shared/_global_nav.html.haml |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/app/views/shared/_global_nav.html.haml 
b/app/views/shared/_global_nav.html.haml
index c9c200b..9f18b97 100644
--- a/app/views/shared/_global_nav.html.haml
+++ b/app/views/shared/_global_nav.html.haml
@@ -30,3 +30,5 @@
     %li &bull;
     %li{:class => active_if(controller_name == "nodes" && action_name == 
"search")}
       = link_to "Inventory Search", search_nodes_path
+  - Registry.each_callback :core, :global_nav_widgets do |callback|
+    = callback.call self
-- 
1.7.3.1

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to