Sha256: ac1042463c6467976061c1a8c06a4bbdfef3bf7d4027e97bb67e223dd4672333

Contents?: true

Size: 1.38 KB

Versions: 16

Compression:

Stored size: 1.38 KB

Contents

<% 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) -%>
    <%= "</ul>#{(options[:level] == 0 ? "</div>#{end_level_0_tag}": '</li>')}".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}<div class=\"#{html_classes.join(' ')}\" #{"onclick=\"\"" if hover_via_click?}> #{content_tag(:div, as_(parent.name), :class => (parent.name.to_s).downcase)}<ul>".html_safe %>
	<% else %>
           <% html_classes << 'top' if options[:first_action] %>
	   <%= "<li #{"class=\"#{html_classes.join(' ')}\"" unless html_classes.empty?} #{"onclick=\"\"" if hover_via_click?}>#{content_tag(:div, as_(parent.name), :class => (parent.name.to_s).downcase)}<ul>".html_safe %>
	<% end %>
  <% else -%>
    <% if options[:level] == 0 %>
      <%= "#{start_level_0_tag}#{h(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 -%>

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
active_scaffold_vho-3.0.31 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.0.30 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.0.29 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.0.28 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.0.27 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.0.26 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.0.25 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.0.24 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.0.23 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.0.22 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.0.21 frontends/default/views/_action_group.html.erb
active_scaffold-3.0.23 frontends/default/views/_action_group.html.erb
active_scaffold-3.0.22 frontends/default/views/_action_group.html.erb
active_scaffold-3.0.21 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.0.20 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.0.19 frontends/default/views/_action_group.html.erb