Sha256: 4038d5e20530422deccc2a2c965e699ec4c3b62ed205d55cfb204804e40ddff7

Contents?: true

Size: 487 Bytes

Versions: 14

Compression:

Stored size: 487 Bytes

Contents

<%% content_for :scripts do %>
  <%%= javascript_include_tag 'cable_menu.js' %>
  <script type="text/javascript" charset="utf-8">
    $(document).ready(function(){  
      $('#menu').cable_menu();
    });
  </script>
<%% end %>

<ul id="menu">
  <%% @<%= plural_table_name %>.each do |m| -%>
    <li title="<%%= m.title %>" id="<%%= dom_id(m) %>">
      <%%= m.title %>
      <%% if m.descendants %><%%= raw display_tree_plain(m.children, m.id) %><%% end %>
    </li> 
  <%% end %>
</ul>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
cable-0.9.17 lib/generators/cable/menu/templates/erb/menus/index.html.erb
cable-0.9.16 lib/generators/cable/menu/templates/erb/menus/index.html.erb
cable-0.9.15 lib/generators/cable/menu/templates/erb/menus/index.html.erb
cable-0.9.14 lib/generators/cable/menu/templates/erb/menus/index.html.erb
cable-0.9.13 lib/generators/cable/menu/templates/erb/menus/index.html.erb
cable-0.9.12 lib/generators/cable/menu/templates/erb/menus/index.html.erb
cable-0.9.11 lib/generators/cable/menu/templates/erb/menus/index.html.erb
cable-0.9.10 lib/generators/cable/menu/templates/erb/menus/index.html.erb
cable-0.9.9 lib/generators/cable/menu/templates/erb/menus/index.html.erb
cable-0.9.8 lib/generators/cable/menu/templates/erb/menus/index.html.erb
cable-0.9.6 lib/generators/cable/menu/templates/erb/menus/index.html.erb
cable-0.9.5 lib/generators/cable/menu/templates/erb/menus/index.html.erb
cable-0.9.4 lib/generators/cable/menu/templates/erb/menus/index.html.erb
cable-0.9.3 lib/generators/cable/menu/templates/erb/menus/index.html.erb