% record ||= nil
start_level_0_tag ||= ''
end_level_0_tag ||= ''%>
<% action_links.traverse(controller, traverse_options) do |parent, link, options| -%>
<% if (options[:node] == :finished_traversing) -%>
<%= "#{(options[:level] == 0 ? "#{end_level_0_tag}": '')}".html_safe %>
<% elsif (options[:node] == :start_traversing) -%>
<% html_classes = []
html_classes << 'hover_click' if hover_via_click? %>
<% if options[:level] == 0 %>
<% html_classes << 'action_group' %>
<%= "#{start_level_0_tag}
#{content_tag(:div, as_(parent.name), :class => (parent.name.to_s).downcase)}
".html_safe %>
<% else %>
<% html_classes << 'top' if options[:first_action] %>
<%= "- #{content_tag(:div, as_(parent.name), :class => (parent.name.to_s).downcase)}
".html_safe %>
<% end %>
<% else debugger-%>
<% if options[:level] == 0 %>
<%= "#{start_level_0_tag}#{render_group_action_link(link, url_options, options, record)}#{end_level_0_tag}".html_safe %>
<% else %>
<%= content_tag('li', render_group_action_link(link, url_options, options, record), options[:first_action] ? {:class => 'top'}: {}) %>
<% end %>
<% end -%>
<% end -%>