Sha256: 55e03de737c6e84331de8a5c2f320575bda276abc72bb1e331a408660da92d09
Contents?: true
Size: 568 Bytes
Versions: 1
Compression:
Stored size: 568 Bytes
Contents
<% def category_list(cat) str = "<ul>" str << category_list_items(cat) str << "</ul>" return str end def category_list_items(cat) str = "<li><a href='/admin/categories/#{cat.id}'>#{cat.name}</a>" cat.children.each{ |kid| str << category_list(kid) } if cat.children && cat.children.count > 0 str << "</li>" return str end %> <h1>Categories</h1> <a href='/admin/categories/new'>New Category</a> <%= category_list(top_cat) %> <% content_for :caboose_js do %> <script type='text/javascript'> </script> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caboose-cms-0.5.51 | app/views/caboose/categories/admin_index.html.erb |