Allow moving favorites for already deleted post
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<h1>Move Favorites to Parent</h1>
|
||||
|
||||
<div>
|
||||
<%= PostPresenter.preview(@post, :tags => "status:any") %>
|
||||
</div>
|
||||
|
||||
<p style="clear: both;">This will move all the post's favorites to its parent post. Are you sure?</p>
|
||||
|
||||
<%= form_tag(move_favorites_moderator_post_post_path, :style => "clear: both;", :class => "simple_form") do %>
|
||||
<%= submit_tag "Submit" %>
|
||||
<%= submit_tag "Cancel" %>
|
||||
<% end %>
|
||||
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user