<%=prefix if defined? prefix%><%=link_to page.name,edit_spud_admin_page_path(:id => page.id)%>
<%=link_to "Preview",spud_admin_page_path(:id => page.id), :title => "Preview",:class => 'button'%> <%=link_to "Remove",spud_admin_page_path(:id => page.id),:method => :delete,:class => 'button',:confirm => "Are you sure you want to remove this page?"%>
<%if !page.spud_pages.all.blank?%>
<%page.spud_pages.each do |spud_page|%>
<%=render :partial => 'page_row',:locals => {:page => spud_page}%>
<%end%>
<%end%>