<%= content_for :data_controls do %> <%= link_to "Manage Categories", spud_admin_post_categories_path, :class => 'btn spud_blog_manage_categories', :title => 'Manage Categories' %> <%= link_to "New Post", new_spud_admin_news_post_path, :class => "btn btn-primary", :title => "New Post" %> <% end %> <%=content_for :detail do %> <% @posts.each do |post| %> <%end%>
Title Author Published At  
<%= link_to edit_spud_admin_news_post_path(post) do %> <%=post.title%> <%if !post.visible%> Draft <%end%> <%end%> <%= post.author.full_name %> <%= link_to(post.published_at.strftime('%m/%d/%Y'), news_post_path(post.url_name)) %> <%= link_to 'Delete', spud_admin_news_post_path(post), :method => :delete, :confirm => 'Are you sure you want to delete this post?', :class => 'btn btn-small btn-danger' %>
<%= will_paginate @posts %>
<%end%>