Allow moving favorites for already deleted post

This commit is contained in:
Toks
2015-07-07 11:08:32 -04:00
parent 8ea095e06e
commit 7c90fca006
4 changed files with 30 additions and 1 deletions

View File

@@ -31,6 +31,9 @@
<% if CurrentUser.can_approve_posts? %>
<% if post.is_deleted? %>
<li><%= link_to "Undelete", undelete_moderator_post_post_path(:post_id => post.id), :remote => true, :method => :post, :id => "undelete" %></li>
<% if post.fav_count > 0 && post.parent_id %>
<li><%= link_to "Move favorites", confirm_move_favorites_moderator_post_post_path(:post_id => post.id) %></li>
<% end %>
<% else %>
<li><%= link_to "Delete", confirm_delete_moderator_post_post_path(:post_id => post.id) %></li>
<% end %>