delete action from post/show requires confirmation+flag reason now

This commit is contained in:
albert
2013-02-23 16:53:03 -05:00
parent 138f3eb3db
commit 4a61498f0e
5 changed files with 27 additions and 7 deletions

View File

@@ -25,7 +25,7 @@
<% if post.is_deleted? %>
<li><%= link_to "Undelete", undelete_moderator_post_post_path(:post_id => post.id), :remote => true, :method => :post, :id => "undelete" %></li>
<% else %>
<li><%= link_to "Delete", delete_moderator_post_post_path(:post_id => post.id), :remote => true, :method => :post, :id => "delete" %></li>
<li><%= link_to "Delete", confirm_delete_moderator_post_post_path(:post_id => post.id) %></li>
<% end %>
<% end %>
<% end %>