<%= admin_breadcrumb %>

<%= @parent.nil? ? 'Content Tree' : "Content under '#{@parent.title}'" %>

<%= form_tag '', :method => :get, :id => 'filter' do %> <%= label_tag :f, 'Filter by Title' %> <%= text_field_tag :f %> <%= submit_tag "Filter" %> <% end %> <% if params[:f] %> <%= link_to "reset", url_for(:only_path => false, :f => nil), :class => 'button' %> <% end %>
<%= will_paginate(@nodes) %> <%= admin_nodes_column_headings %> <% @nodes.each do |node| %> <%# Change 'position' content if we are sorting by position %> <% if(params[:sort] && params[:sort] != "position" || params[:order] == "descending") %> <% else %> <% end %> <% end %> <%= admin_nodes_column_headings %>
<%= link_to "#{ node.admin_title } #{ '(draft)' if node.has_draft? }", noodall_admin_node_path(node), :class => 'edit', :title => "Edit #{node.title}" %> <%= node.class.name.titleize %><%= node.position %><%= link_to 'up', move_up_noodall_admin_node_path(node), { :class => "page_up", :title => 'Move this content higher in the navigation' } unless node.first? %> <%= link_to 'down', move_down_noodall_admin_node_path(node), { :class => 'page_down', :title => 'Move this content lower in the navigation' } unless node.last? %> <% unless node.class.template_classes.blank? -%> <%= link_to pluralize(node.children.size, "Child"), noodall_admin_node_nodes_path(node), :title => "View content under #{h(node.title)}", :class => 'child-no' %> <%= link_to('Add', new_noodall_admin_node_node_path(node), :title => "Add content under #{h(node.title)}", :class => 'child') if node.class.template_names.any? %> <% end -%> <%=h node.updated_at.to_formatted_s(:short_ordinal) %> <%= link_to 'Show', node_path(node), :class => 'show', :title => 'View this content' if node.published? %> "><%= (node.published? ? 'Published' : '').html_safe %> <%= link_to 'Delete', noodall_admin_node_path(node), :confirm => 'Are you sure?', :method => :delete, :class => 'delete', :title => 'Delete this content' unless node.in_site_map? %>
<%= will_paginate(@nodes, :previous_label => 'Previous', :next_label => 'Next') %>