Sha256: 249bf989aa3934477c01f8df2566ba1f447eb6f6df5799bff08923e8ca5e79d3

Contents?: true

Size: 1.37 KB

Versions: 75

Compression:

Stored size: 1.37 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}#{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

75 entries across 75 versions & 4 rubygems

Version Path
active_scaffold_vho-4.0.0 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.2.14 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.2.13 frontends/default/views/_action_group.html.erb
active_scaffold-sequel-0.8.0 frontends/default/views/_action_group.html.erb
active_scaffold-sequel-0.7.1 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.2.12 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.2.11 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.2.10 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.2.9 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.2.8 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.2.7 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.2.6 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.2.5 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.2.4 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.2.3 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.2.2 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.2.1 frontends/default/views/_action_group.html.erb
active_scaffold-sequel-0.7.0 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.2.0 frontends/default/views/_action_group.html.erb
active_scaffold_vho-3.1.8 frontends/default/views/_action_group.html.erb