Sha256: 01d1c946a16f9c9d50df03a76bd95bb207022b710495578383e31cb45fe628a6

Contents?: true

Size: 569 Bytes

Versions: 491

Compression:

Stored size: 569 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

491 entries across 491 versions & 1 rubygems

Version Path
caboose-cms-0.9.85 app/views/caboose/categories/admin_index.html.erb
caboose-cms-0.9.84 app/views/caboose/categories/admin_index.html.erb
caboose-cms-0.9.83 app/views/caboose/categories/admin_index.html.erb
caboose-cms-0.9.82 app/views/caboose/categories/admin_index.html.erb
caboose-cms-0.9.81 app/views/caboose/categories/admin_index.html.erb
caboose-cms-0.9.80 app/views/caboose/categories/admin_index.html.erb
caboose-cms-0.9.79 app/views/caboose/categories/admin_index.html.erb
caboose-cms-0.9.78 app/views/caboose/categories/admin_index.html.erb
caboose-cms-0.9.77 app/views/caboose/categories/admin_index.html.erb
caboose-cms-0.9.76 app/views/caboose/categories/admin_index.html.erb
caboose-cms-0.9.75 app/views/caboose/categories/admin_index.html.erb
caboose-cms-0.9.74 app/views/caboose/categories/admin_index.html.erb
caboose-cms-0.9.73 app/views/caboose/categories/admin_index.html.erb
caboose-cms-0.9.72 app/views/caboose/categories/admin_index.html.erb
caboose-cms-0.9.71 app/views/caboose/categories/admin_index.html.erb
caboose-cms-0.9.70 app/views/caboose/categories/admin_index.html.erb
caboose-cms-0.9.69 app/views/caboose/categories/admin_index.html.erb
caboose-cms-0.9.68 app/views/caboose/categories/admin_index.html.erb
caboose-cms-0.9.67 app/views/caboose/categories/admin_index.html.erb
caboose-cms-0.9.66 app/views/caboose/categories/admin_index.html.erb