Guest User

Untitled

a guest
Sep 7th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.77 KB | None | 0 0
  1.  
  2.   <% elsif (options[:node] == :start_traversing) -%>
  3.         <% html_classes = []
  4.            html_classes << 'hover_click' if hover_via_click? %>
  5.     <% if options[:level] == 0 %>
  6.            <% html_classes << 'action_group' %>
  7.        <%= "#{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 %>
  8.     <% else %>
  9.            <% html_classes << 'top' if options[:first_action] %>
  10.        <%= "<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 %>
  11.     <% end %>
  12.   <% else -%>
  13.     <% if options[:level] == 0 %>
Add Comment
Please, Sign In to add comment