janitors can undelete/delete

This commit is contained in:
albert
2013-02-22 16:35:25 -05:00
parent 0b6dfcc90d
commit d18b44fb1b

View File

@@ -22,16 +22,12 @@
<% else %>
<li><%= link_to "Hide from queue", moderator_post_disapproval_path(:post_id => post.id), :remote => true, :method => :post, :id => "disapprove" %></li>
<% end %>
<% end %>
<% if CurrentUser.is_moderator? %>
<% 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>
<% end %>
<% end %>
<% end %>
<% end %>