added post#annihilate, removed stale post_moderation views

This commit is contained in:
albert
2011-10-15 23:07:50 -04:00
parent 81dc20c58f
commit 57c922ec30
18 changed files with 50 additions and 66 deletions

View File

@@ -16,5 +16,10 @@
<li><%= link_to "Undelete", undelete_moderator_post_post_path(:post_id => post.id), :remote => true, :method => :post, :id => "undelete" %></li>
<li><%= link_to "Delete", delete_moderator_post_post_path(:post_id => post.id), :remote => true, :method => :post, :id => "delete" %></li>
<% end %>
<% if CurrentUser.is_admin? %>
<li><%= link_to "Annihilate", annihilate_moderator_post_post_path(:post_id => post.id), :remote => true, :method => :post, :id => "annihilate", :confirm => "This will permanently delete this post (meaning the file will be deleted). Are you sure you want to annihilate this post?" %></li>
<% end %>
<li><%= link_to "Pool", "#", :id => "pool" %></li>
</ul>