<% if Goldberg.menu menu = Goldberg.menu.get_menu(level) if menu %> > <% for item_id in menu do item = Goldberg.menu.get_item(item_id) selected = Goldberg.menu.selected?(item.id)%> > <%= item.label %> <%= if selected and depth > 0 render :file => "#{RAILS_ROOT}/vendor/plugins/goldberg/app/views/goldberg/menu_items/_menubar.rhtml", :use_full_path => false, :locals => {:level => level + 1, :depth => depth - 1, :class_attr => class_attr } end %> <% end %> <% end end %>