%= content_for :data_controls do %> <%= link_to "New Post", new_spud_admin_post_path, :class => "button", :title => "New Post" %> <% end %> <%=content_for :detail do %>
Title | Author | Published At | Comments | |
---|---|---|---|---|
<%= link_to post.title, edit_spud_admin_post_path(post) %> | <%= post.author.full_name %> | <%= link_to(post.published_at.strftime('%m/%d/%Y'), blog_post_path(post.url_name)) %> | <%= post.comments.size %> | <%= link_to 'Delete', spud_admin_post_path(post), :method => :delete, :confirm => 'Are you sure you want to delete this post?', :class => 'spud_admin_button_delete' %> |